fix: root package path correction #8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy Backend to Fly.io | |
| on: | |
| workflow_dispatch: # Allows manual trigger from Actions page | |
| push: | |
| branches: | |
| - main # Optional: auto-deploy on push to main | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Step 1: Checkout repo | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| # Step 2: Install Fly CLI | |
| - name: Install Fly CLI | |
| run: | | |
| curl -L https://fly.io/install.sh | sh | |
| echo "$HOME/.fly/bin" >> $GITHUB_PATH | |
| # Step 3: Deploy to Fly.io | |
| - name: Deploy Backend | |
| env: | |
| FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | |
| run: fly deploy --config fly.toml --remote-only | |
| working-directory: ./backend |