Skip to content

Commit e84fbed

Browse files
SomeoneSergeJohn
authored andcommitted
workflows: nix-flakestry: drop tag filters
...and add a job for flakehub.com
1 parent 9c2b036 commit e84fbed

File tree

2 files changed

+36
-23
lines changed

2 files changed

+36
-23
lines changed

.github/workflows/nix-flakestry.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Make the flake discoverable on https://flakestry.dev and https://flakehub.com/flakes
2+
name: "Publish a flake to flakestry & flakehub"
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
workflow_dispatch:
8+
inputs:
9+
tag:
10+
description: "The existing tag to publish"
11+
type: "string"
12+
required: true
13+
jobs:
14+
flakestry-publish:
15+
runs-on: ubuntu-latest
16+
permissions:
17+
id-token: "write"
18+
contents: "read"
19+
steps:
20+
- uses: flakestry/flakestry-publish@main
21+
with:
22+
version: "${{ inputs.tag || github.ref_name }}"
23+
flakehub-publish:
24+
runs-on: "ubuntu-latest"
25+
permissions:
26+
id-token: "write"
27+
contents: "read"
28+
steps:
29+
- uses: "actions/checkout@v4"
30+
with:
31+
ref: "${{ (inputs.tag != null) && format('refs/tags/{0}', inputs.tag) || '' }}"
32+
- uses: "DeterminateSystems/nix-installer-action@main"
33+
- uses: "DeterminateSystems/flakehub-push@main"
34+
with:
35+
visibility: "public"
36+
tag: "${{ inputs.tag }}"

0 commit comments

Comments
 (0)