diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cbbff3e..c2caa68 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,14 +1,15 @@ name: Fly Deploy -on: [push] -env: - FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} +on: + push: + branches: + - main jobs: deploy: - name: Deploy app - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: superfly/flyctl-actions@1.3 - with: - args: "deploy" - + name: Deploy app + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: superfly/flyctl-actions/setup-flyctl@master + - run: flyctl deploy --remote-only + env: + FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}