summaryrefslogtreecommitdiff
path: root/.github/workflows/flakehub-publish.yaml
diff options
context:
space:
mode:
authorseth <[email protected]>2024-01-26 05:43:47 -0500
committerseth <[email protected]>2024-01-26 05:43:47 -0500
commit90c83b4694150bdcfe4fcac1c55fcfdef17c3612 (patch)
tree74f3a8d9cac0b972fc7e50fdcf2403f60e39795e /.github/workflows/flakehub-publish.yaml
initial commit
Diffstat (limited to '.github/workflows/flakehub-publish.yaml')
-rw-r--r--.github/workflows/flakehub-publish.yaml27
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/flakehub-publish.yaml b/.github/workflows/flakehub-publish.yaml
new file mode 100644
index 0000000..f707375
--- /dev/null
+++ b/.github/workflows/flakehub-publish.yaml
@@ -0,0 +1,27 @@
+name: Publish on Flakehub
+
+on:
+ push:
+ branches: [main]
+ tags:
+ - "v*.*.*"
+
+jobs:
+ publish:
+ name: Publish
+ runs-on: ubuntu-latest
+ container: nixos/nix:sha256:b8ea88f763f33dfda2317b55eeda3b1a4006692ee29e60ee54ccf6d07348c598 # 2.19.3
+
+ permissions:
+ contents: read
+ id-token: write
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
+
+ - name: Push to Flakehub
+ uses: DeterminateSystems/flakehub-push@b441737e7d01e044d7b60a3240fb81cbf827bee0 # v3
+ with:
+ visibility: "public"
+ rolling: ${{ !startsWith(github.ref, 'refs/tags/v' )}}