Skip to content

Commit

Permalink
fix permission
Browse files Browse the repository at this point in the history
Signed-off-by: seven <zilisheng1996@gmail.com>
  • Loading branch information
Blankll committed Jan 24, 2024
1 parent d0c7db7 commit d027b49
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/page-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,33 @@ on:
pull_request:
branches: [master]

permissions:
checks: write
contents: write

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
checks: write
contents: write
deployments: write
name: Publish to Cloudflare Pages
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'
- run: npm ci
- run: npm run docs:build
- name: Create Tag
uses: jaywcjlove/create-tag-action@v1.3.20
uses: jaywcjlove/create-tag-action@main
if: ${{ github.ref == 'refs/heads/master' }}
id: create_tag
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Create Release
uses: jaywcjlove/create-tag-action@v1.3.20
uses: jaywcjlove/create-tag-action@main
if: steps.create_tag.outputs.successful
id: tag_release
with:
Expand Down

0 comments on commit d027b49

Please sign in to comment.