I’m trying to deploy an app with github actions and I get this error
==> Verifying app config
Error Undeployed app ‘villing’ has no platform version set
My app has already a fly.toml config and that same config works for deploying the same app under another branch
name: 🚀 Deploy
timeout-minutes: 10
runs-on: ubuntu-latest
needs: [lint, typecheck, build]
# only build/deploy main branch on pushes
if: ${{ (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev') && github.event_name == 'push' }}
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
- name: 👀 Read app name
uses: SebRollen/toml-action@v1.0.1
id: app_name
with:
file: "apps/dashboard/fly.toml"
field: "apps/dashboard/app"
- name: 🚀 Deploy Staging
if: ${{ github.ref == 'refs/heads/dev' }}
uses: superfly/flyctl-actions@1.3
with:
args: "deploy --app villing-staging --image registry.fly.io/villing-staging"
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
- name: 🚀 Deploy Production
if: ${{ github.ref == 'refs/heads/main' }}
uses: superfly/flyctl-actions@1.3
with:
args: "deploy --app villing --image registry.fly.io/villing"
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
this is the github action step