Skip to content

ci: migrated to Cloudflare Pages #7

ci: migrated to Cloudflare Pages

ci: migrated to Cloudflare Pages #7

Workflow file for this run

name: "πŸš€ Deploy to Cloudflare Pages"
on:
push:
branches: ["main"]
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
name: "βš™οΈ Build"
uses: ./.github/workflows/build.yml
with:
upload_artifact: true
deploy:
name: "πŸš€ Deploy to Cloudflare Pages"
runs-on: ubuntu-latest
needs: build
permissions:
contents: read
deployments: write
steps:
- name: "☁️ Download build artifact"
uses: actions/download-artifact@v4
with:
name: build-artifact
- name: "πŸš€ Publish"
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: pogor-dev
directory: ./
gitHubToken: ${{ secrets.GITHUB_TOKEN }}