Skip to content

WIP

WIP #57

Workflow file for this run

name: Build
on:
push:
tags: ["v*"]
branches: ["main"]
pull_request:
branches: ["*"]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: superfly/flyctl-actions/setup-flyctl@master
- name: Build container
run: docker build . --build-arg scalanative_mode=debug --build-arg scalanative_lto=none -t sn-bindgen-web
if: "!(startsWith(github.ref, 'refs/tags/v') || (github.ref == 'refs/heads/main'))"
- name: Deploy to fly.io
run: "flyctl deploy -a sn-bindgen-web"
if: startsWith(github.ref, 'refs/tags/v') || (github.ref == 'refs/heads/main')
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}