diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index aba0cc31a..faa6998bc 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -41,7 +41,7 @@ jobs: bash make.sh - name: Publish pages env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.GH_TOKEN }} run: | source $HOME/.rvm/scripts/rvm bash update_gh-pages.sh diff --git a/update_gh-pages.sh b/update_gh-pages.sh index c7da19147..294528989 100755 --- a/update_gh-pages.sh +++ b/update_gh-pages.sh @@ -22,5 +22,5 @@ git config user.email "contact@killbill.io" git add $VERSION git add latest git commit -m "Docs update" -git push -f gh-pages:gh-pages +git push -f "https://${GH_TOKEN}:x-oauth-basic@${GH_REF}" gh-pages:gh-pages popd