Files
gregh.dev/.github/workflows/deployment.yaml
2025-02-20 00:01:48 -08:00

29 lines
1.2 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
run-name: "☁️ CF Deploy"
name: "☁️ CF Deploy"
on:
pull_request:
types: [closed]
jobs:
job-publish:
name: "📦 Publish to Cloudflare"
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
steps:
- name: "Checkout"
id: task_publish_checkout
uses: actions/checkout@v4
- name: "☁️ Publish to Cloudflare Pages"
id: task_publish_push
uses: aetherinox/cloudflare-publish-action@latest
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} # Cloudflare API Token from https://dash.cloudflare.com/profile/api-tokens
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} # Cloudflare account ID shown on the right side of the CF website
projectName: ${{ vars.PROJECT_NAME }} # Project name assigned during creation (see Workers & Pages section)
directory: src/ # The directory where your built site is located
branch: main # The branch to deploy; defaults to the branch triggering the workflow
workingDirectory: . # Working directory relative to the repository root