From fdf9429e1c6ed9311393f477f19005ca4aa6deb9 Mon Sep 17 00:00:00 2001 From: Lee Langley Date: Wed, 31 Dec 2025 15:44:27 +0000 Subject: [PATCH] Grant write access to deploy script Also updates script dependencies --- .github/workflows/deploy-to-github-pages.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-to-github-pages.yml b/.github/workflows/deploy-to-github-pages.yml index 85fa702f..83000276 100644 --- a/.github/workflows/deploy-to-github-pages.yml +++ b/.github/workflows/deploy-to-github-pages.yml @@ -6,18 +6,21 @@ on: pull_request: branches: - main +permissions: + contents: write jobs: deploy: env: BASE_PATH: ${{ github.event.repository.name }} DIST_FOLDER: docs/.vuepress/dist + concurrency: ci-${{ github.ref }} runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v6 - name: Setup Node.js environment - uses: actions/setup-node@v3 + uses: actions/setup-node@v6 with: node-version: 'lts/*' @@ -27,7 +30,7 @@ jobs: BASE_PATH=${{ env.BASE_PATH }} npm run docs:build - name: Deploy - uses: JamesIves/github-pages-deploy-action@v4.4.1 + uses: JamesIves/github-pages-deploy-action@v4 with: branch: gh-pages folder: ${{ env.DIST_FOLDER }}