Skip to content

Commit

Permalink
Fix release
Browse files Browse the repository at this point in the history
  • Loading branch information
c-w committed Oct 2, 2021
1 parent 89c7267 commit b00024c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ jobs:
with:
node-version: '12'
- run: npm install
- run: npm run deploy
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./src
publish_branch: master
- run: npm run postdeploy
env:
GITHUB_TOKEN: ${{ secrets.GH_PAGES_TOKEN }}
CLOUDFLARE_TOKEN: ${{ secrets.CF_API_TOKEN }}
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
"license": "Apache-2.0",
"private": true,
"scripts": {
"predeploy": "gh-pages-clean",
"deploy": "gh-pages --no-history --dist src --branch master --repo \"https://${GITHUB_TOKEN}@github.com/ascoderu/ascoderu.github.io\" --user \"Deployment Bot (from Github Actions) <[email protected]>\"",
"postdeploy": "cfcli --domain ascoderu.ca --token \"${CLOUDFLARE_TOKEN}\" purge",
"lint.css": "csslint src",
"lint.html": "htmllint src/index.html",
Expand Down

0 comments on commit b00024c

Please sign in to comment.