Add user interface for displaying GENED areas #117
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
go: | |
name: Go build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: "1.20" | |
- run: go build | |
web: | |
name: Frontend build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "18" | |
- run: npm ci | |
- run: npm run format:check | |
- run: npm run check | |
- run: npm run build | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
if: contains(fromJSON('["push", "workflow_dispatch"]'), github.event_name) && github.ref == 'refs/heads/main' | |
needs: [go, web] | |
concurrency: | |
group: deploy | |
cancel-in-progress: false | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: superfly/flyctl-actions@master | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | |
with: | |
args: deploy --remote-only |