Skip to content

Commit 3ce88a3

Browse files
grahamcblaggacao
authored andcommitted
FlakeHub: support uploading existing tags
If you're interested, you can publish existing tags using this updated workflow. Once this merges, you can go to the workflow on GitHub at https://github.com/divnix/std/actions/workflows/flakehub-publish-tagged.yml, click "Run workflow", and then type in -- for example -- `v0.24.0-1` or `v0.23.2`. I hope that helps!
1 parent 16edd0f commit 3ce88a3

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed
Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,26 @@
1+
name: "Publish tags to FlakeHub"
12
on:
23
push:
34
tags:
45
- "v*.*.*"
6+
workflow_dispatch:
7+
inputs:
8+
tag:
9+
description: "The existing tag to publish to FlakeHub"
10+
type: "string"
11+
required: true
512
jobs:
6-
publish:
13+
flakehub-publish:
714
runs-on: "ubuntu-latest"
815
permissions:
916
id-token: "write"
1017
contents: "read"
1118
steps:
1219
- uses: "actions/checkout@v3"
20+
with:
21+
ref: "${{ (inputs.tag != null) && format('refs/tags/{0}', inputs.tag) || '' }}"
1322
- uses: "DeterminateSystems/nix-installer-action@main"
1423
- uses: "DeterminateSystems/flakehub-push@main"
1524
with:
1625
visibility: "public"
17-
name: "divnix/std"
26+
tag: "${{ inputs.tag }}"

0 commit comments

Comments
 (0)