Skip to content

upgrade actions/checkout to v4 #61

upgrade actions/checkout to v4

upgrade actions/checkout to v4 #61

Workflow file for this run

name: Build and deploy
on:
push:
branches: ["migration-to-golang", "dev", "main"]
env:
FLY_API_TOKEN: ${{ secrets. FLY_API_TOKEN }}
jobs:
build-mcmamina:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: πŸ‘€ Read app name
uses: SebRollen/[email protected]
id: app_name
with:
file: fly.toml
field: app
- uses: superfly/flyctl-actions/setup-flyctl@master
- name: πŸš€ Deploy Go
if: ${{ github.ref == 'refs/heads/migration-to-golang' }}
run: flyctl deploy --remote-only --region waw --build-arg COMMIT_SHA=${{ github.sha }} --app ${{ steps.app_name.outputs.value }}-go
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
- name: πŸš€ Deploy Staging
if: ${{ github.ref == 'refs/heads/dev' }}
run: flyctl deploy --remote-only --region waw --build-arg COMMIT_SHA=${{ github.sha }} --app ${{ steps.app_name.outputs.value }}-staging
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
- name: πŸš€ Deploy Production
if: ${{ github.ref == 'refs/heads/main' }}
run: flyctl deploy --remote-only --region waw --build-arg COMMIT_SHA=${{ github.sha }} --app ${{ steps.app_name.outputs.value }}
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}