We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 404c92e commit 339c460Copy full SHA for 339c460
.github/workflows/deploy.yml
@@ -0,0 +1,30 @@
1
+name: Deploy React App to GitHub Pages
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main
7
8
+jobs:
9
+ build-and-deploy:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout repository
13
+ uses: actions/checkout@v3
14
15
+ - name: Setup Node.js
16
+ uses: actions/setup-node@v3
17
+ with:
18
+ node-version: '19'
19
20
+ - name: Install dependencies
21
+ run: npm install
22
23
+ - name: Build
24
+ run: npm run build
25
26
+ - name: Deploy
27
+ uses: peaceiris/actions-gh-pages@v3
28
29
+ github_token: ${{ secrets.GITHUB_TOKEN }}
30
+ publish_dir: ./build
0 commit comments