Deploy to Cloudflare Pages #341
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to Cloudflare Pages | |
on: | |
workflow_run: | |
workflows: ["Build"] | |
types: | |
- completed | |
jobs: | |
deploy-to-cloudflare: | |
name: Automatic Cloudflare Deploy | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Deploy to Cloudflare | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
uses: ubiquity/cloudflare-deploy-action@main | |
with: | |
repository: ${{ github.repository }} | |
production_branch: ${{ github.event.repository.default_branch }} | |
build_artifact_name: "static" | |
output_directory: "static" | |
current_branch: ${{ github.event.workflow_run.head_branch }} | |
cloudflare_account_id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
cloudflare_api_token: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
commit_sha: ${{ github.event.workflow_run.head_sha }} | |
workflow_run_id: ${{ github.event.workflow_run.id }} | |
app_id: ${{ secrets.APP_ID }} | |
app_private_key: ${{ secrets.APP_PRIVATE_KEY }} |