From 1f6bdf310b594537be9117c51c47d85878db3e81 Mon Sep 17 00:00:00 2001 From: madhums Date: Thu, 4 Jan 2024 11:20:28 +0100 Subject: [PATCH] use superfly action --- .github/workflows/deploy-production.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index 75c69e4f..e0a8e0dd 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -9,13 +9,17 @@ on: jobs: deploy: + name: Deploy if: | github.event.workflow_run.conclusion == 'success' - concurrency: deploy runs-on: ubuntu-latest environment: production steps: - - uses: dentarg/fly@v1 + # This step checks out a copy of your repository. + - uses: actions/checkout@v4 + - uses: superfly/flyctl-actions/setup-flyctl@master with: - fly-token: ${{ secrets.FLY_API_TOKEN }} - github-token: ${{ secrets.GITHUB_TOKEN }} + version: 1.4 + - run: flyctl deploy --remote-only + env: + FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}