There was an error while loading. Please reload this page.
2 parents c54502b + 7f15dcd commit dbc530bCopy full SHA for dbc530b
1 file changed
.github/workflows/deploy.yml
@@ -0,0 +1,34 @@
1
+name: Deploy to GitHub Pages
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main
7
8
+permissions:
9
+ contents: write
10
11
+jobs:
12
+ build-and-deploy:
13
+ runs-on: ubuntu-latest
14
15
+ steps:
16
+ - name: Checkout code
17
+ uses: actions/checkout@v3
18
19
+ - name: Setup Node.js
20
+ uses: actions/setup-node@v3
21
+ with:
22
+ node-version: '18'
23
24
+ - name: Install dependencies
25
+ run: npm install
26
27
+ - name: Build project
28
+ run: npm run build
29
30
+ - name: Deploy to GitHub Pages
31
+ uses: peaceiris/actions-gh-pages@v3
32
33
+ github_token: ${{ secrets.GITHUB_TOKEN }}
34
+ publish_dir: ./dist
0 commit comments