ci: add the (Nix) flakestry workflow

This commit is contained in:
Someone Serge 2023-12-25 17:05:21 +00:00
parent e3b1ba27c2
commit 12d4a68efe
No known key found for this signature in database
GPG key ID: 7B0E3B1390D61DA4

23
.github/workflows/nix-flakestry.yml vendored Normal file
View file

@ -0,0 +1,23 @@
# Make the flake discoverable on https://flakestry.dev
name: "Publish a flake to flakestry"
on:
push:
tags:
- "v?[0-9]+.[0-9]+.[0-9]+"
- "v?[0-9]+.[0-9]+"
workflow_dispatch:
inputs:
tag:
description: "The existing tag to publish"
type: "string"
required: true
jobs:
publish-flake:
runs-on: ubuntu-latest
permissions:
id-token: "write"
contents: "read"
steps:
- uses: flakestry/flakestry-publish@main
with:
version: "${{ inputs.tag || github.ref_name }}"