File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments