Skip to content

Docs Publish

Docs Publish #21

Workflow file for this run

name: Docs Publish
on:
workflow_dispatch:
inputs:
environment: { type: environment, required: true }
jobs:
docs_publish:
runs-on: ubuntu-latest
environment: ${{inputs.environment}}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: docs-pages
- name: Publish docs-pages branch to Cloudflare Pages
if: inputs.environment && vars.CLOUDFLARE_PAGE_BRANCH
uses: cloudflare/pages-action@v1
with:
apiToken: ${{secrets.CLOUDFLARE_API_TOKEN}}
accountId: ${{vars.CLOUDFLARE_ACCOUNT_ID}}
projectName: ${{vars.CLOUDFLARE_PAGES_PROJECT}}
directory: .
branch: ${{vars.CLOUDFLARE_PAGE_BRANCH}}