1 parent ed501ae commit a113268Copy full SHA for a113268
1 file changed
.github/workflows/deploy.yaml
@@ -0,0 +1,31 @@
1
+name: Deploy React App
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main
7
8
+jobs:
9
+ build-and-deploy:
10
+ runs-on: ubuntu-latest
11
12
+ steps:
13
+ - name: Checkout Code
14
+ uses: actions/checkout@v4
15
16
+ - name: Set up Node.js
17
+ uses: actions/setup-node@v4
18
+ with:
19
+ node-version: "22"
20
21
+ - name: Install Dependencies
22
+ run: npm ci
23
24
+ - name: Build
25
+ run: npm run build
26
27
+ - name: Deploy to GitHub Pages
28
+ uses: peaceiris/actions-gh-pages@v4
29
30
+ github_token: ${{ secrets.GITHUB_TOKEN }}
31
+ publish_dir: ./dist
0 commit comments