Skip to content

Merge pull request #9 from Gearbox-protocol/next #12

Merge pull request #9 from Gearbox-protocol/next

Merge pull request #9 from Gearbox-protocol/next #12

Workflow file for this run

name: Release and deploy
on:
push:
branches:
- main # change to main if needed
- next
jobs:
release:
runs-on: ubuntu-latest
concurrency: deploy-group # optional: ensure only one action runs at a time
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: "yarn"
node-version-file: ".nvmrc"
- name: Perform checks
run: |
yarn install --frozen-lockfile
yarn typecheck:ci
yarn lint:ci
yarn prettier:ci
- uses: superfly/flyctl-actions/setup-flyctl@master
if: ${{ github.ref_name == 'main' }}
- run: flyctl deploy --remote-only --build-target app --dockerfile docker/Dockerfile.flyio --ha=false
if: ${{ github.ref_name == 'main' }}
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}