Ignore simtools.json #57
Workflow file for this run
This file contains 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: Fly Deploy | |
on: [push] | |
jobs: | |
deploy_staging: # Always deploy to staging | |
if: github.repository == 'OCNS/simselect' && github.ref == 'refs/heads/main' | |
name: Deploy app to simselect-dev | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: sed -i 's/simselect/simselect-dev/g' fly.toml | |
- uses: superfly/flyctl-actions/setup-flyctl@master | |
- run: flyctl deploy --remote-only | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_STAGING_API_TOKEN }} | |
deploy: | |
name: Deploy app # Deploy to production only when a tag is pushed | |
if: github.repository == 'OCNS/simselect' && startsWith(github.ref, 'refs/tags') | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: superfly/flyctl-actions/setup-flyctl@master | |
- run: flyctl deploy --remote-only | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} |