From 3011c75c06140251df48ce1e9730b00671b2d6a7 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Sat, 6 Dec 2025 08:40:35 -0800 Subject: [PATCH] Add ability to publish from any ref This adds the ability so that we can publish from any ref, not just master. --- .github/workflows/publish.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index eb3b578f1a..2d9dfec17d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -14,6 +14,10 @@ on: description: "Publish libgit2-sys" type: boolean default: true + publish-ref: + description: "Branch/tag/SHA to publish from" + type: string + default: master permissions: contents: write @@ -26,6 +30,7 @@ jobs: - uses: actions/checkout@master with: submodules: true + ref: ${{ inputs.publish-ref }} - name: Publish env: CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}