From b0076c4c94c556597ae4acdd978fe97a685a3dd8 Mon Sep 17 00:00:00 2001 From: seth Date: Thu, 21 Dec 2023 19:18:19 -0500 Subject: actions: publish to flakehub --- .github/workflows/flakehub-publish.yaml | 24 ++++++++++++++++++++++++ README.md | 1 + 2 files changed, 25 insertions(+) create mode 100644 .github/workflows/flakehub-publish.yaml 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. -- cgit v1.2.3