File tree 2 files changed +53
-3
lines changed
2 files changed +53
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : Github Page Docs
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ workflow_dispatch :
7
+
8
+ concurrency :
9
+ group : ' pages'
10
+ cancel-in-progress : true
11
+
12
+ jobs :
13
+ build :
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - uses : actions/checkout@v4
17
+ - name : Set node
18
+ uses : actions/setup-node@v4
19
+ with :
20
+ node-version : lts/*
21
+
22
+ - name : Setup
23
+ run : npm i -g @antfu/ni
24
+
25
+ - name : Install
26
+ run : nci
27
+
28
+ - name : Build unplugin
29
+ run : nr build
30
+
31
+ - name : Build docs
32
+ run : nr docs:build
33
+ env :
34
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35
+
36
+ - name : Upload Artifact
37
+ uses : actions/upload-pages-artifact@v3
38
+ with :
39
+ path : ./docs/.vitepress/dist
40
+
41
+ deploy :
42
+ needs : build
43
+ permissions :
44
+ pages : write
45
+ id-token : write
46
+ environment :
47
+ name : github-pages
48
+ url : ${{ steps.deployment.outputs.page_url }}
49
+ runs-on : ubuntu-latest
50
+ steps :
51
+ - name : Deploy to GitHub Pages 🚀
52
+ id : deployment
53
+ uses : actions/deploy-pages@v4
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments