diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index a9245808..2ce1bcd7 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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/pages-action@v1.5.0 + with: + directory: dist + branch: new-connect + projectName: connect + accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + apiToken: ${{ secrets.CLOUDFLARE_PAGES_TOKEN }} + diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index a9e6ff03..aeac06cb 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -4,7 +4,6 @@ on: workflow_run: workflows: ["build"] types: - - requested - completed permissions: @@ -49,11 +48,11 @@ jobs: id: cloudflare-publish uses: cloudflare/pages-action@v1.5.0 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 diff --git a/README.md b/README.md index 5f7ea8ca..32e2eb62 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # connect -This is an experimental rewrite of [comma connect](https://github.com/commaai/connect). +This is an experimental rewrite of [comma connect](https://github.com/commaai/connect). connect is the web (and mobile) experience for [openpilot](https://github.com/commaai/openpilot). -connect is the web (and mobile) experience for [openpilot](https://github.com/commaai/openpilot). +Try out new-connect at https://new-connect.connect-d5y.pages.dev. ## Development