Skip to content

Commit ad029e4

Browse files
committed
ci: add the (Nix) flakestry workflow
1 parent bcaf104 commit ad029e4

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/nix-flakestry.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Make the flake discoverable on https://flakestry.dev
2+
name: "Publish a flake to flakestry"
3+
on:
4+
push:
5+
tags:
6+
- "v?[0-9]+.[0-9]+.[0-9]+"
7+
- "v?[0-9]+.[0-9]+"
8+
workflow_dispatch:
9+
inputs:
10+
tag:
11+
description: "The existing tag to publish"
12+
type: "string"
13+
required: true
14+
jobs:
15+
publish-flake:
16+
runs-on: ubuntu-latest
17+
permissions:
18+
id-token: "write"
19+
contents: "read"
20+
steps:
21+
- uses: flakestry/flakestry-publish@main
22+
with:
23+
version: "${{ inputs.tag || github.ref_name }}"

0 commit comments

Comments
 (0)