File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish Docs
2
+
3
+ on :
4
+ push :
5
+ workflow_dispatch :
6
+
7
+ jobs :
8
+ build-and-deploy :
9
+ runs-on : ubuntu-latest
10
+
11
+ steps :
12
+ - name : Checkout
13
+ uses : actions/checkout@v1
14
+
15
+ - name : Use Node.js 22
16
+ uses : actions/setup-node@v3
17
+ with :
18
+ node-version : 22.11.0
19
+
20
+ - name : Installing packages
21
+ working-directory : ./docs
22
+ run : npm install
23
+
24
+ - name : Build Nuxt 3 static site
25
+ working-directory : ./docs
26
+ run : npx nuxi generate
27
+
28
+ - name : Deploy to GitHub Pages
29
+ uses : peaceiris/actions-gh-pages@v3
30
+ if : github.ref == 'refs/heads/master'
31
+ with :
32
+ github_token : ${{ secrets.GITHUB_TOKEN }}
33
+ publish_dir : ./docs/dist
34
+ commit_message : ' Automatic deploy: ${{ github.event.head_commit.message }}'
You can’t perform that action at this time.
0 commit comments