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 Deployon: push: branches: - main # change to main if neededjobs: 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 }}
name: Fly Deployon: push: branches: - main # change to main if neededjobs: 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.
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:
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?
Recent Announcements
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
W
Wasp
Rails-like framework for React, Node.js and Prisma. Build your app in a day and deploy it with a single CLI command.