How to use wasp deploy fly deploy command in github actions

So I've been trying to create a CI/CD pipeline for my wasp web app and I'm trying the automate the deploy process for my app with wasp deploy fly deploy in my github actions. This is what I have in my fly.yml currently:
name: Fly Deploy

on:
  push:
    branches:
      - main # change to main if needed

jobs:
  deploy:
    name: Deploy app
    runs-on: ubuntu-latest
    concurrency: deploy-group # optional: ensure only one action runs at a time

    steps:
    - uses: actions/checkout@v4
    
    - name: Install wasp
      run: |
        curl -sSL https://get.wasp-lang.dev/installer.sh | sh
        echo "$HOME/.wasp/bin" >> $GITHUB_PATH
    
    - uses: superfly/flyctl-actions/setup-flyctl@master
    
    - name: Deploy with wasp
      run: wasp deploy fly deploy
      working-directory: app
      env:
        FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}


But, I'm having issues with this command in GitHub actions that I don't have when i run it in the terminal. Like in the wasp deply fly deploy command when it gets to the flyctl secrets list -j command I get this in my github actions:
Error: Could not find App "lexal-server"
:rocket:  Unable to check for DATABASE_URL secret. 


But in my terminal it just lists the secrets and it works perfectly. The exact same code is being pushed to my github as in my vscode and I have this gitignore:
*/.wasp/
*/.env.server
*/.env.client
*/.DS_Store
*/node_modules
*/migrations
.DS_Store


I tried to remove the .wasp from gitignore to see if that was the issue and it didn't help. I have the .toml files for fly-server and fly-client already set up. Can someone help me with this?
Was this page helpful?