Skip to content

deploy master preview (#5) #18

deploy master preview (#5)

deploy master preview (#5) #18

Workflow file for this run

name: build
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-pnpm
- run: pnpm build
- name: Upload built project
uses: actions/upload-artifact@v4
with:
path: ./dist
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/pages-action@v1.5.0
with:
directory: dist
branch: new-connect
projectName: connect
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_PAGES_TOKEN }}