Skip to content

Commit caf62b7

Browse files
chaxusclaude
andcommitted
ci: add workflow_dispatch to pages-build-site for manual ref deployment
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent b303a2f commit caf62b7

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/pages-build-site.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ on:
33
push:
44
branches:
55
- main
6+
workflow_dispatch:
7+
inputs:
8+
ref:
9+
description: 'Git ref to deploy (branch, tag, or SHA). Defaults to main.'
10+
required: false
11+
default: 'main'
612

713
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
814
permissions:
@@ -22,6 +28,8 @@ jobs:
2228
steps:
2329
- name: Checkout
2430
uses: actions/checkout@v6
31+
with:
32+
ref: ${{ github.event.inputs.ref || github.ref }}
2533

2634
- uses: pnpm/action-setup@v6
2735
name: Install pnpm

0 commit comments

Comments
 (0)