drive-gooder frontend build Harrolee #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build FE | |
run-name: drive-gooder frontend build ${{ github.actor }} | |
on: | |
push: | |
branches: ["prod"] | |
paths: | |
- "web/**" | |
pull_request: | |
branches: ["prod"] | |
paths: | |
- "web/**" | |
concurrency: | |
group: ${{ github.workflow }} | |
cancel-in-progress: true | |
jobs: | |
build-deploy: | |
name: Build Frontend | |
runs-on: ubuntu-latest | |
environment: prod | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Build FE | |
run: | | |
cd web | |
npm install | |
- name: Build FE | |
run: | | |
cd web | |
npm run build | |
# FE build will be in build | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: frontend-build | |
path: web/build |