Skip to content

test dev

test dev #3

Workflow file for this run

name: πŸš€ Deploy
on:
push:
branches:
- main
- dev
jobs:
deploy:
name: πŸš€ Deploy
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev' }}
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
- name: πŸ‘€ Read app name
uses: SebRollen/[email protected]
id: app_name
with:
file: "steps/12-transactional-consistency/fly.toml"
field: "app"
- name: πŸ”© Install fly
uses: superfly/flyctl-actions/setup-flyctl@master
- name: πŸš€ Deploy Staging
if: ${{ github.ref == 'refs/heads/dev' }}
run:
"cd ./steps/12-transactional-consistency && flyctl deploy --app ${{
steps.app_name.outputs.value }}-staging --remote-only"
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
- name: πŸš€ Deploy Production
if: ${{ github.ref == 'refs/heads/main' }}
run:
"cd ./steps/12-transactional-consistency && flyctl deploy
--remote-only"
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}