You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
751 B
YAML
24 lines
751 B
YAML
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
|
|
|