From d6def4acd0defdcce53788472a34487236441a41 Mon Sep 17 00:00:00 2001 From: jiangmiemie <69161207+jiangmiemie@users.noreply.github.com> Date: Mon, 4 Dec 2023 15:54:01 +0800 Subject: [PATCH] Update build-and-run.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修正git action --- .github/workflows/build-and-run.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-run.yml b/.github/workflows/build-and-run.yml index 134d4b2..e922a82 100644 --- a/.github/workflows/build-and-run.yml +++ b/.github/workflows/build-and-run.yml @@ -8,7 +8,9 @@ on: jobs: build-and-run: runs-on: ubuntu-latest - + # 不给权限会报错 + permissions: + contents: write steps: - name: 1. Checkout repository uses: actions/checkout@v4 @@ -41,4 +43,4 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./static - publish_branch: html \ No newline at end of file + publish_branch: html