From 56c739fd521f10f3c1eaaa042898cf76cb966369 Mon Sep 17 00:00:00 2001 From: poneding Date: Mon, 13 Jan 2025 15:42:43 +0800 Subject: [PATCH] ci: update deploy action. --- .github/workflows/deploy.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 557d8491..6c677547 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -14,6 +14,8 @@ on: jobs: deploy: runs-on: ubuntu-22.04 + permissions: + contents: write concurrency: group: ${{ github.workflow }}-${{ github.ref }} steps: @@ -32,7 +34,7 @@ jobs: run: hugo --minify - name: Deploy - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 if: github.ref == 'refs/heads/master' with: github_token: ${{ secrets.GITHUB_TOKEN }}