Skip to content

Commit

Permalink
[github-actions] re-enabled personal access token to trigger page build
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronny Wegener committed Jan 18, 2020
1 parent fbef1dc commit b4d712d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/continuous-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
- name: Deploy (web)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HAKUNEKO_TOKEN: ${{ secrets.HAKUNEKO_ACCESS_TOKEN }}
HAKUNEKO_PASSPHRASE: ${{ secrets.HAKUNEKO_PASSPHRASE }}
# set variable with branch that triggered the action (e.g. GITHUB_BRANCH = ${{ github.ref }})
run: npm run deploy:web
2 changes: 1 addition & 1 deletion deploy-web.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ async function gitCommit() {
// - https://github.community/t5/GitHub-Actions/Github-action-not-triggering-gh-pages-upon-push/td-p/26869
// - https://github.com/peaceiris/actions-gh-pages/issues/9
let uri = `https://api.github.com/repos/manga-download/hakuneko/pages/builds`;
await execute(`curl -L -X POST -H "Content-Type: application/json" -H "Authorization: TOKEN ${process.env.GITHUB_TOKEN}" ${uri}`)
await execute(`curl -L -X POST -H "Content-Type: application/json" -H "Authorization: TOKEN ${process.env.HAKUNEKO_TOKEN}" ${uri}`)
}

async function main() {
Expand Down

0 comments on commit b4d712d

Please sign in to comment.