We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 334ce2d commit a7f0e71Copy full SHA for a7f0e71
.github/workflows/deploy.yml
@@ -0,0 +1,35 @@
1
+name: Deploy to GitHub Pages
2
+
3
+on:
4
+ push:
5
+ branches: [main]
6
7
+# Allow the workflow to push to the gh-pages branch
8
+permissions:
9
+ contents: write
10
11
+jobs:
12
+ deploy:
13
+ runs-on: ubuntu-latest
14
15
+ steps:
16
+ - name: Checkout
17
+ uses: actions/checkout@v4
18
19
+ - name: Set up Node
20
+ uses: actions/setup-node@v4
21
+ with:
22
+ node-version: 20
23
+ cache: npm
24
25
+ - name: Install dependencies
26
+ run: npm ci
27
28
+ - name: Build
29
+ run: npm run build
30
31
+ - name: Deploy to gh-pages branch
32
+ uses: peaceiris/actions-gh-pages@v4
33
34
+ github_token: ${{ secrets.GITHUB_TOKEN }}
35
+ publish_dir: ./dist
0 commit comments