add LaTeX file upload functionality and configure source directory #17
Workflow file for this run
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: Fly Deploy | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| env: | |
| FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | |
| PRODUCTION_URL: 'https://cdrxiv-file-uploader.fly.dev/docs' | |
| STAGING_URL: 'https://cdrxiv-file-uploader-staging.fly.dev/docs' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| deploy: | |
| name: Deploy app | |
| timeout-minutes: 20 | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: ${{ github.ref == 'refs/heads/main' && 'production' || 'staging' }} | |
| url: ${{ github.ref == 'refs/heads/main' && env.PRODUCTION_URL || env.STAGING_URL }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: superfly/flyctl-actions/setup-flyctl@master | |
| - name: Deploy to Staging | |
| run: | | |
| flyctl deploy --remote-only --config fly.staging.toml | |
| - name: Deploy to Production | |
| if: github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch' | |
| run: | | |
| flyctl deploy --remote-only --config fly.prod.toml |