Skip to content

Commit fcb2f72

Browse files
authored
Create build-react.yml
1 parent 543b7ab commit fcb2f72

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

Diff for: .github/workflows/build-react.yml

+37
Original file line numberDiff line numberDiff line change
@@ -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+
runs-on: ubuntu-latest
33+
needs: build
34+
steps:
35+
- name: Deploy to GitHub Pages
36+
id: deployment
37+
uses: actions/deploy-pages@v1

0 commit comments

Comments
 (0)