Skip to content

Commit

Permalink
👷 Tweak Cloudflare action to deploy to prod (#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo authored Oct 5, 2024
1 parent 4854af4 commit 8226b95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/deploy-ui-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,12 @@ jobs:
id: deploy
env:
PROJECT_NAME: ${{ matrix.environment == 'staging' && 'dashboard-fastapicloud-work' || matrix.environment == 'development' && 'dashboard-fastapicloud-space' }}
BRANCH: ${{ github.event_name == 'pull_request' && 'preview' || github.event_name == 'push' && 'main' }}
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy ./frontend/dist --project-name=${{ env.PROJECT_NAME }}
command: pages deploy ./frontend/dist --project-name=${{ env.PROJECT_NAME }} --branch=${{ env.BRANCH }}
- name: Install GitHub Actions dependencies
run: |
uv venv
Expand Down

0 comments on commit 8226b95

Please sign in to comment.