diff --git a/.github/workflows/fly.yml b/.github/workflows/fly.yml new file mode 100644 index 0000000..9bccc8c --- /dev/null +++ b/.github/workflows/fly.yml @@ -0,0 +1,25 @@ +name: Deploy Backend to Fly.io + +on: + push: + branches: + - main + workflow_dispatch: + +env: + CARGO_TERM_COLOR: always + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Get source code + uses: actions/checkout@v3 + + - name: Deploy to Fly.io + uses: superfly/flyctl-actions@1.4 + env: + FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} + with: + args: "deploy --remote-only --dockerfile ./Dockerfile --config ./fly.toml" +