Skip to content

Commit d7b3f09

Browse files
committed
Add GitHub Actions workflow for publishing documentation
1 parent 4466742 commit d7b3f09

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/docs.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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 }}'

0 commit comments

Comments
 (0)