Skip to content

Commit 218e0af

Browse files
committed
⬆️ Upgrade CI
1 parent fadfe3f commit 218e0af

File tree

1 file changed

+29
-14
lines changed

1 file changed

+29
-14
lines changed

.github/workflows/deploy.yml

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,48 @@
1-
name: Deploy
1+
name: Deploy to GitHub Pages
2+
23
on:
34
workflow_dispatch: {}
45
push:
56
branches:
67
- main
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: 'pages'
16+
cancel-in-progress: true
17+
718
jobs:
8-
deploy:
19+
build:
920
runs-on: ubuntu-latest
10-
permissions:
11-
pages: write
12-
id-token: write
13-
environment:
14-
name: github-pages
15-
url: ${{ steps.deployment.outputs.page_url }}
1621
steps:
1722
- uses: actions/checkout@v3
1823
with:
1924
fetch-depth: 0
20-
- uses: actions/setup-node@v3
25+
- name: Use Node.js 18
26+
uses: actions/setup-node@v3
2127
with:
22-
node-version: 16
28+
node-version: 18
2329
cache: npm
2430
- run: npm install --frozen-lockfile
2531
- name: Build
2632
run: npm run docs:build
27-
- uses: actions/configure-pages@v2
28-
- uses: actions/upload-pages-artifact@v1
33+
34+
- name: Upload artifact
35+
uses: actions/upload-pages-artifact@v3
2936
with:
3037
path: docs/.vitepress/dist
31-
- name: Deploy
38+
39+
deploy:
40+
environment:
41+
name: github-pages
42+
url: ${{ steps.deployment.outputs.page_url }}
43+
runs-on: ubuntu-latest
44+
needs: build
45+
steps:
46+
- name: Deploy to GitHub Pages
3247
id: deployment
33-
uses: actions/deploy-pages@v1
48+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)