summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.