Triggered by creating tag which name like: v1.0.0-beta or v1.0.0-beta-1
name: Deploy Beta Pages
on:
push:
tags:
- 'v*beta*'
env:
AWS_REGION: ap-southeast-1
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
name: Setup Node.js
with:
node-version: 24
- uses: pnpm/action-setup@v6
name: Install pnpm
with:
version: 10
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v5
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- run: pnpm config set shamefully-hoist true
- run: pnpm install
- run: pnpm build:admin:beta
- run: npx wrangler pages deploy packages/group-admin/dist --project-name <your-project-name> --branch beta/cloudflare-reserved
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}