diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 0000000..38db813 --- /dev/null +++ b/.github/workflows/deploy.yaml @@ -0,0 +1,18 @@ +name: Deploy +on: + push: + tags: + - 'v*' + +env: + UNCONDITIONAL_API_SOURCE_CLIENT_KEY: ${{ secrets.UNCONDITIONAL_API_SOURCE_CLIENT_KEY }} + FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} + +jobs: + deploy: + name: Deploy app + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: superfly/flyctl-actions/setup-flyctl@master + - run: fly deploy --build-secret UNCONDITIONAL_API_SOURCE_CLIENT_KEY=${UNCONDITIONAL_API_SOURCE_CLIENT_KEY} diff --git a/.github/workflows/fly-cron-deploy.yaml b/.github/workflows/fly-cron-deploy.yaml deleted file mode 100644 index 80d2239..0000000 --- a/.github/workflows/fly-cron-deploy.yaml +++ /dev/null @@ -1,15 +0,0 @@ -name: Scheduled Fly Deploy -on: - schedule: - - cron: "30 * * * *" - -env: - FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} -jobs: - 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