Skip to content

Commit b00024c

Browse files
committed
Fix release
1 parent 89c7267 commit b00024c

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/cd.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ jobs:
1515
with:
1616
node-version: '12'
1717
- run: npm install
18-
- run: npm run deploy
18+
- uses: peaceiris/actions-gh-pages@v3
19+
with:
20+
github_token: ${{ secrets.GITHUB_TOKEN }}
21+
publish_dir: ./src
22+
publish_branch: master
23+
- run: npm run postdeploy
1924
env:
20-
GITHUB_TOKEN: ${{ secrets.GH_PAGES_TOKEN }}
2125
CLOUDFLARE_TOKEN: ${{ secrets.CF_API_TOKEN }}

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
"license": "Apache-2.0",
77
"private": true,
88
"scripts": {
9-
"predeploy": "gh-pages-clean",
10-
"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) <deploy@ascoderu.ca>\"",
119
"postdeploy": "cfcli --domain ascoderu.ca --token \"${CLOUDFLARE_TOKEN}\" purge",
1210
"lint.css": "csslint src",
1311
"lint.html": "htmllint src/index.html",

0 commit comments

Comments
 (0)