We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ec5e98 commit 84a2b9eCopy full SHA for 84a2b9e
1 file changed
.github/workflows/static.yml
@@ -0,0 +1,38 @@
1
+name: GitHub Pages
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+ workflow_dispatch:
9
10
+jobs:
11
+ deploy:
12
+ runs-on: ubuntu-22.04
13
+ permissions:
14
+ contents: write
15
+ concurrency:
16
+ group: ${{ github.workflow }}-${{ github.ref }}
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+ with:
20
+ fetch-depth: 0
21
22
+ - name: Setup Node.js
23
+ uses: actions/setup-node@v4
24
25
+ node-version: '20'
26
27
+ - name: Install dependencies and build
28
+ run: |
29
+ npm ci
30
+ npm run build
31
32
+ - name: Deploy to GitHub Pages
33
+ uses: peaceiris/actions-gh-pages@v4
34
+ if: github.ref == 'refs/heads/main'
35
36
+ github_token: ${{ secrets.GITHUB_TOKEN }}
37
+ publish_dir: ./dist
38
+ publish_branch: gh-pages # Optional, but good to be explicit
0 commit comments