Skip to content

Commit

Permalink
deploy master preview
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh committed Jun 9, 2024
1 parent aecdd6d commit 11d3d86
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,16 @@ jobs:
overwrite: true
retention-days: 1
name: build-artifacts-${{ github.run_id }}

# deploy
- name: Deploy to Cloudflare Pages
id: cloudflare-publish
#if: github.ref == 'refs/heads/master' && github.repository == 'commaai/new-connect'
uses: cloudflare/[email protected]
with:
directory: dist
branch: new-connect
projectName: connect
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_PAGES_TOKEN }}

3 changes: 1 addition & 2 deletions .github/workflows/preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
workflow_run:
workflows: ["build"]
types:
- requested
- completed

permissions:
Expand Down Expand Up @@ -49,11 +48,11 @@ jobs:
id: cloudflare-publish
uses: cloudflare/[email protected]
with:
directory: dist
branch: ${{ steps.pr.outputs.result }}
projectName: connect
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_PAGES_TOKEN }}
directory: dist

- name: Comment URL on PR
uses: thollander/actions-comment-pull-request@v2
Expand Down

0 comments on commit 11d3d86

Please sign in to comment.