Skip to content

Commit

Permalink
create flakehub-publish-tagged.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ibizaman committed Dec 25, 2024
1 parent 0c1a9aa commit 8cd2482
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/flakehub-publish-tagged.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "Publish tags to FlakeHub"
on:
push:
tags:
- "v?[0-9]+.[0-9]+.[0-9]+*"
workflow_dispatch:
inputs:
tag:
description: "The existing tag to publish to FlakeHub"
type: "string"
required: true
jobs:
flakehub-publish:
runs-on: "ubuntu-latest"
permissions:
id-token: "write"
contents: "read"
steps:
- uses: "actions/checkout@v4"
with:
ref: "${{ (inputs.tag != null) && format('refs/tags/{0}', inputs.tag) || '' }}"
- uses: "DeterminateSystems/nix-installer-action@main"
- uses: "DeterminateSystems/flakehub-push@main"
with:
visibility: "public"
name: "ibizaman/selfhostblocks"
tag: "${{ inputs.tag }}"
include-output-paths: true
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ that is not like the other server management tools.
### Flake Module

Self Host Blocks is available as a flake.
Also on [flakehub](https://flakehub.com/flake/ibizaman/selfhostblocks?view=usage).
To use it in your existing project, add the following flake input:

```nix
Expand All @@ -54,7 +55,7 @@ Then, pin it to a release/tag with the following snippet.
Updating Self Host Blocks to a new version can be done the same way.

```nix
nix flake lock --override-input selfhostblocks github:ibizaman/selfhostblocks/v0.2.2
nix flake lock --override-input selfhostblocks github:ibizaman/selfhostblocks/v0.2.7
```

To get started using Self Host Blocks,
Expand Down

0 comments on commit 8cd2482

Please sign in to comment.