fix token permissions
This commit is contained in:
7
.github/workflows/generate.yml
vendored
7
.github/workflows/generate.yml
vendored
@@ -13,6 +13,12 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 120
|
timeout-minutes: 120
|
||||||
container: node:18.18.0-alpine3.18
|
container: node:18.18.0-alpine3.18
|
||||||
|
permissions:
|
||||||
|
pages: write
|
||||||
|
id-token: write
|
||||||
|
environment:
|
||||||
|
name: github-pages
|
||||||
|
url: ${{ steps.gh-pages.outputs.page_url }}
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -28,6 +34,7 @@ jobs:
|
|||||||
name: 'github-pages'
|
name: 'github-pages'
|
||||||
path: 'dist/'
|
path: 'dist/'
|
||||||
- name: publish to pages
|
- name: publish to pages
|
||||||
|
id: gh-pages
|
||||||
uses: actions/deploy-pages@v2
|
uses: actions/deploy-pages@v2
|
||||||
with:
|
with:
|
||||||
artifact_name: 'github-pages'
|
artifact_name: 'github-pages'
|
||||||
|
|||||||
Reference in New Issue
Block a user