From b18f1f5d2733aa3ff1c5d68e2af4053bd462342f Mon Sep 17 00:00:00 2001 From: LeonardoBai12 <69223422+LeonardoBai12@users.noreply.github.com> Date: Mon, 22 Jun 2026 03:15:52 -0300 Subject: [PATCH] Add CD pipeline to deploy to Fly.io on release Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/deploy_workflow.yml | 32 +++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/deploy_workflow.yml diff --git a/.github/workflows/deploy_workflow.yml b/.github/workflows/deploy_workflow.yml new file mode 100644 index 0000000..53cb610 --- /dev/null +++ b/.github/workflows/deploy_workflow.yml @@ -0,0 +1,32 @@ +name: Deploy to Fly.io + +on: + release: + types: [published] + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up JDK 17 + uses: actions/setup-java@v2 + with: + java-version: 17 + distribution: 'adopt' + + - name: Make gradlew executable + run: chmod +x ./gradlew + + - name: Build fat JAR + run: ./gradlew clean shadowJar --no-daemon + + - name: Install flyctl + uses: superfly/flyctl-actions/setup-flyctl@master + + - name: Deploy to Fly.io + run: flyctl deploy --remote-only + env: + FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}