Skip to content

chore: setup fly before deploy #2

chore: setup fly before deploy

chore: setup fly before deploy #2

name: Fly Production Deploy
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
on:
# release:
# types: [published]
push:
branches:
- "fly-deploy"
jobs:
deploy:
name: 🚀 Deploy
runs-on: ubuntu-latest
concurrency: deploy-group # optional: ensure only one action runs at a time
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
- name: 🚚 Move Dockerfile to root
run: |
mv ./docker/Dockerfile ./Dockerfile
- name: 🪰 Setup flyctl
uses: superfly/flyctl-actions/setup-flyctl@master
with:
version: latest
- name: 🚀 Deploy Production
run: flyctl deploy --remote-only --build-arg COMMIT_SHA=${{ github.sha }}
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}