diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 2c996cb9..5eecdab6 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -1,10 +1,5 @@ name: deploy -on: - workflow_dispatch: - pull_request: - push: - branches: - - production +on: [push] jobs: deploy: @@ -14,6 +9,7 @@ jobs: permissions: id-token: write contents: read + deployments: write steps: - name: Checkout @@ -51,9 +47,10 @@ jobs: --output=built \ --base=https://frontside.com - - name: Upload to Deno Deploy - uses: denoland/deployctl@v1 + - name: Upload To Cloudflare Pages + uses: cloudflare/wrangler-action@v3 with: - project: frontside - entrypoint: "jsr:@std/http/file-server" - root: built + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + command: pages deploy built --project-name=frontside + gitHubToken: ${{ secrets.GITHUB_TOKEN }}