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