Skip to content

Commit a594be5

Browse files
ythamalv-around
authored andcommitted
Convert publish to workflow dispatch (#1377)
1 parent f160293 commit a594be5

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/publish-mdbook.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
name: Publish mdBook to Vercel
22

33
on:
4-
push:
5-
branches: ["main"]
6-
paths:
7-
- "book/**"
4+
workflow_dispatch:
5+
inputs:
6+
branch:
7+
description: "Branch to deploy"
8+
required: true
9+
type: string
10+
default: "main"
811

912
permissions:
1013
contents: write
@@ -16,6 +19,8 @@ jobs:
1619
steps:
1720
- name: Checkout repository
1821
uses: actions/checkout@v4
22+
with:
23+
ref: ${{ github.event.inputs.branch }}
1924

2025
- name: Install Rust
2126
uses: dtolnay/rust-toolchain@stable

0 commit comments

Comments
 (0)