pull/124/head
Till0196 1 year ago
parent d74d6d6f17
commit 5a18fef501

@ -1,4 +1,4 @@
on: [push]
on: [workflow_dispatch]
jobs:
example:

@ -0,0 +1,23 @@
on: [push,workflow_dispatch]
jobs:
example:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Example
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Publish to Cloudflare Pages
uses: cloudflare/wrangler-action@v3
with:
# Explicit branch name needed because of: https://github.com/cloudflare/pages-action/issues/97
branch: ${{ github.head_ref || github.ref_name }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
environment: 'production'
command: pages deploy example --project-name=github-actions-example --branch=main
id: publish
Loading…
Cancel
Save