Skip to content

Use Fall 2023 as an example #114

Use Fall 2023 as an example

Use Fall 2023 as an example #114

Workflow file for this run

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