Skip to content

Commit e51ae86

Browse files
committed
add deploy.yml
1 parent 5c3de81 commit e51ae86

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Deploy GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
- name: Setup Pages
15+
id: pages
16+
uses: actions/configure-pages@v5
17+
- name: Build site
18+
run: |
19+
./scripts/build.sh
20+
- name: Upload artifact
21+
uses: actions/upload-pages-artifact@v3
22+
with:
23+
path: './docs/.vitepress/dist'
24+
25+
deploy:
26+
environment:
27+
name: github-pages
28+
url: ${{ steps.deployment.outputs.page_url }}
29+
runs-on: ubuntu-latest
30+
needs: build
31+
permissions:
32+
contents: read
33+
pages: write
34+
id-token: write
35+
steps:
36+
- name: Deploy to GitHub Pages
37+
id: deployment
38+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)