From b4d712d28fc6f378676ba7cc4e51d3716e21f275 Mon Sep 17 00:00:00 2001 From: Ronny Wegener Date: Sat, 18 Jan 2020 19:19:16 +0100 Subject: [PATCH] [github-actions] re-enabled personal access token to trigger page build --- .github/workflows/continuous-deployment.yml | 1 + deploy-web.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/continuous-deployment.yml b/.github/workflows/continuous-deployment.yml index 153069db0ca..c016355d536 100644 --- a/.github/workflows/continuous-deployment.yml +++ b/.github/workflows/continuous-deployment.yml @@ -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 \ No newline at end of file diff --git a/deploy-web.js b/deploy-web.js index 6f167468915..02d87ff3009 100644 --- a/deploy-web.js +++ b/deploy-web.js @@ -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() {