Skip to content

fix(ci): change env var #4

fix(ci): change env var

fix(ci): change env var #4

Workflow file for this run

name: Deploy Example Website
on:
push:
branches: [main]
workflow_dispatch:
inputs:
pages-branch:
description: |
Which Pages branch to deploy to.
Set this to the default branch (usually `main`) if you want to deploy to production.
And `preview` for anything else'
required: true
type: choice
default: 'main'
options:
- 'main'
- 'preview'
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Deploy
uses: ./
# uses: trufflehq/pages-turbo-workspace-action@v1
with:
# The script to build your site (joins with `yarn workspace $workspace_name`) (default: `build`)
build-script: build
# Cloudflare Account ID
cloudflare-account-id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
# Cloudflare API Token
cloudflare-api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }}
# The directory of static assets to upload (default: `dist`)
directory: dist
# GitHub Token
github-token: ${{ secrets.GITHUB_TOKEN }}
# Optional: The script to run before building your site
prebuild-script: yarn build
# Optional: The branch to deploy to production
production-branch: ${{ github.event.repository.default_branch }}
# The name of the Cloudflare Pages project
project-name: ptw-example
# The name of the yarn workspace being deployed
workspace-name: web
# The branch to deploy to in the cloudflare project
deploy-to-branch: ${{ github.event.inputs.pages-branch || github.ref_name }}