diff --git a/.github/workflows/flakehub-publish-tagged.yml b/.github/workflows/flakehub-publish-tagged.yml new file mode 100644 index 0000000..be874de --- /dev/null +++ b/.github/workflows/flakehub-publish-tagged.yml @@ -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 diff --git a/README.md b/README.md index 40b9a7c..ee53744 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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,