Skip to content

Commit 591952f

Browse files
authored
Merge pull request #1198 from ehuss/publish-custom-ref
Add ability to publish from any ref
2 parents d721e70 + 3011c75 commit 591952f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ on:
1414
description: "Publish libgit2-sys"
1515
type: boolean
1616
default: true
17+
publish-ref:
18+
description: "Branch/tag/SHA to publish from"
19+
type: string
20+
default: master
1721

1822
permissions:
1923
contents: write
@@ -26,6 +30,7 @@ jobs:
2630
- uses: actions/checkout@master
2731
with:
2832
submodules: true
33+
ref: ${{ inputs.publish-ref }}
2934
- name: Publish
3035
env:
3136
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 commit comments

Comments
 (0)