summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseth <[email protected]>2023-12-21 19:18:19 -0500
committerseth <[email protected]>2023-12-21 19:18:19 -0500
commitb0076c4c94c556597ae4acdd978fe97a685a3dd8 (patch)
treee4ab514aab06178ec239f9aeb95a8cc87c559b6a
parent8695d9d41441da0326d0260bae2f4962f32bfea0 (diff)
actions: publish to flakehub
-rw-r--r--.github/workflows/flakehub-publish.yaml24
-rw-r--r--README.md1
2 files changed, 25 insertions, 0 deletions
diff --git a/.github/workflows/flakehub-publish.yaml b/.github/workflows/flakehub-publish.yaml
new file mode 100644
index 0000000..3e7bb4e
--- /dev/null
+++ b/.github/workflows/flakehub-publish.yaml
@@ -0,0 +1,24 @@
+name: Publish on Flakehub
+
+on:
+ push:
+ branches: [main]
+
+jobs:
+ publish:
+ runs-on: ubuntu-latest
+
+ permissions:
+ id-token: write
+
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Install Nix
+ uses: DeterminateSystems/nix-installer-action@v9
+
+ - name: Push to Flakehub
+ uses: DeterminateSystems/flakehub-push@v3
+ with:
+ visibility: "public"
+ rolling: true
diff --git a/README.md b/README.md
index e0bccfd..656adaa 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,7 @@
# nix2workflow
![test status](https://github.com/getchoo/nix2workflow/actions/workflows/ci.yaml/badge.svg)
+[![FlakeHub](https://img.shields.io/endpoint?url=https://flakehub.com/f/getchoo/nix2workflow/badge)](https://flakehub.com/flake/getchoo/nix2workflow)
nix2workflow is a library for generating github matrices from regular nix flake outputs.