Skip to content

Commit 29a6727

Browse files
Upgrade docs generation actions
1 parent 45dbc8b commit 29a6727

File tree

1 file changed

+22
-7
lines changed

1 file changed

+22
-7
lines changed

.github/workflows/docs.yml

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,32 @@ on:
1111
- completed
1212
workflow_dispatch:
1313

14-
permissions: write-all
14+
permissions:
15+
contents: read
16+
pages: write
17+
id-token: write
18+
19+
concurrency:
20+
group: "pages"
21+
cancel-in-progress: true
1522

1623
jobs:
1724
generate:
1825
runs-on: ubuntu-latest
1926

27+
environment:
28+
name: github-pages
29+
url: ${{ steps.deployment.outputs.page_url }}
30+
2031
steps:
2132
- uses: actions/checkout@v3
2233
with:
2334
fetch-depth: 0
2435
token: ${{ secrets.GITHUB_TOKEN }}
2536

37+
- name: Setup Pages
38+
uses: actions/configure-pages@v2
39+
2640
- name: Setup Node.js
2741
uses: actions/setup-node@v3
2842

@@ -42,10 +56,11 @@ jobs:
4256
- name: Build VuePress site
4357
run: npm run build
4458

45-
- name: Deploy to GitHub Pages
46-
uses: crazy-max/ghaction-github-pages@v3.0.0
59+
- name: Upload artifact
60+
uses: actions/upload-pages-artifact@v1
4761
with:
48-
target_branch: gh-pages
49-
build_dir: docs/.vuepress/dist
50-
env:
51-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62+
path: './docs/.vuepress/dist'
63+
64+
- name: Deploy to GitHub Pages
65+
id: deployment
66+
uses: actions/deploy-pages@v1

0 commit comments

Comments
 (0)