From 8649ec5215f5a032bbebb22caf845259583b7a61 Mon Sep 17 00:00:00 2001 From: Xiaoji Chen Date: Thu, 25 Apr 2024 12:08:37 -0700 Subject: [PATCH] Fix website CI --- .github/workflows/website.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index fd70a3eae..4d245aa18 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -23,11 +23,16 @@ jobs: deploy: runs-on: ubuntu-latest needs: check_branch + + permissions: + contents: write if: ${{ github.repository_owner == 'visgl' && needs.check_branch.outputs.should_deploy }} steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + with: + token: ${{ secrets.WEBSIT_DEPLOY_TOKEN }} - name: Use Node.js uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 @@ -47,7 +52,7 @@ jobs: - name: Deploy uses: JamesIves/github-pages-deploy-action@132898c54c57c7cc6b80eb3a89968de8fc283505 # 3.7.1 with: - GITHUB_TOKEN: ${{ secrets.WEBSITE_DEPLOY_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} BRANCH: gh-pages FOLDER: website/build CLEAN: true