create flakehub-publish-tagged.yml
This commit is contained in:
parent
0c1a9aa50f
commit
8cd248256d
2 changed files with 30 additions and 1 deletions
28
.github/workflows/flakehub-publish-tagged.yml
vendored
Normal file
28
.github/workflows/flakehub-publish-tagged.yml
vendored
Normal file
|
|
@ -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
|
||||||
|
|
@ -44,6 +44,7 @@ that is not like the other server management tools.
|
||||||
### Flake Module
|
### Flake Module
|
||||||
|
|
||||||
Self Host Blocks is available as a flake.
|
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:
|
To use it in your existing project, add the following flake input:
|
||||||
|
|
||||||
```nix
|
```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.
|
Updating Self Host Blocks to a new version can be done the same way.
|
||||||
|
|
||||||
```nix
|
```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,
|
To get started using Self Host Blocks,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue