Skip to content

Commit fda848b

Browse files
authored
adde gh-deploy
1 parent 1d48787 commit fda848b

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/gh-deploy.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: GH Page Deploy
2+
on:
3+
workflow_dispatch: {}
4+
push:
5+
branches:
6+
- main
7+
jobs:
8+
deploy:
9+
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 }}
16+
#
17+
steps:
18+
- uses: actions/checkout@v3
19+
with:
20+
fetch-depth: 0
21+
- uses: actions/setup-node@v3
22+
with:
23+
node-version: 16
24+
#cache: npm
25+
- run: npm i
26+
- name: Build
27+
run: npm run docs:build
28+
- uses: actions/configure-pages@v2
29+
- uses: actions/upload-pages-artifact@v1
30+
with:
31+
path: docs/.vitepress/dist
32+
- name: Deploy
33+
id: deployment
34+
uses: actions/deploy-pages@v1

0 commit comments

Comments
 (0)