commit a97008e8f1216f80dc74512d98e81813e50b35c0
parent f6a0d6c613e0d27814550f1051d1c3378f3eeaef
Author: figsoda <figsoda@pm.me>
Date: Thu, 24 Aug 2023 09:49:41 -0400
parent f6a0d6c613e0d27814550f1051d1c3378f3eeaef
Author: figsoda <figsoda@pm.me>
Date: Thu, 24 Aug 2023 09:49:41 -0400
ci: support retroactive flakehub publishes
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml @@ -5,10 +5,16 @@ on: tags: - v[0-9]+.[0-9]+.[0-9]+ workflow_dispatch: + inputs: + tag: + description: The existing tag to publish to FlakeHub + type: string + required: true jobs: release: runs-on: ubuntu-latest + if: github.event_name != 'workflow_dispatch' steps: - uses: softprops/action-gh-release@v1 with: @@ -21,7 +27,10 @@ jobs: contents: read steps: - uses: actions/checkout@v3 + with: + ref: ${{ format('refs/tags/{0}', inputs.tag) }} - uses: DeterminateSystems/nix-installer-action@v4 - uses: DeterminateSystems/flakehub-push@v3 with: visibility: public + tag: ${{ inputs.tag }}