ci: add the flakestry workflow
This commit is contained in:
parent
869e1e0961
commit
e8d02f4664
1 changed files with 23 additions and 0 deletions
23
.github/workflows/nix-flakestry.yml
vendored
Normal file
23
.github/workflows/nix-flakestry.yml
vendored
Normal 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 }}"
|
Loading…
Add table
Add a link
Reference in a new issue