Fly with gh actions

In my Laravel app, I have a GitHub Action set up for deployment. Currently, it deploys the master branch, but I want it to deploy the beta branch instead. How can I modify the GitHub Action to achieve this?

name: Fly Deploy

on:
  push:
    branches: [ "beta" ]

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

You can use ref option like below.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.