Update build-and-run.yml
修正git action
This commit is contained in:
parent
b5bee828ca
commit
d6def4acd0
6
.github/workflows/build-and-run.yml
vendored
6
.github/workflows/build-and-run.yml
vendored
@ -8,7 +8,9 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build-and-run:
|
build-and-run:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
# 不给权限会报错
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- name: 1. Checkout repository
|
- name: 1. Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -41,4 +43,4 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
publish_dir: ./static
|
publish_dir: ./static
|
||||||
publish_branch: html
|
publish_branch: html
|
||||||
|
Loading…
Reference in New Issue
Block a user