diff --git a/.github/workflows/continuous-deployment.yml b/.github/workflows/continuous-deployment.yml index 153069db0c..c016355d53 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 6f16746891..02d87ff300 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() {