We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 543b7ab commit fcb2f72Copy full SHA for fcb2f72
.github/workflows/build-react.yml
@@ -0,0 +1,37 @@
1
+name: Application build and deployment
2
+on:
3
+ push:
4
+ branches:
5
+ - master
6
+
7
+jobs:
8
+ build:
9
+ name: Application build
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout 🛎️
13
+ uses: actions/checkout@v3
14
15
+ - name: Install and Build 🔧
16
+ run: |
17
+ npm install
18
+ npm run build
19
20
+ - name: Deploy 🚀
21
+ uses: actions/upload-pages-artifact@v1
22
+ with:
23
+ path: ./dist
24
+ deploy:
25
+ name: Deploy to GitHub Pages
26
+ permissions:
27
+ pages: write
28
+ id-token: write
29
+ environment:
30
+ name: github-pages
31
+ url: ${{ steps.deployment.outputs.page_url }}
32
33
+ needs: build
34
35
+ - name: Deploy to GitHub Pages
36
+ id: deployment
37
+ uses: actions/deploy-pages@v1
0 commit comments