nix: add flakestry publish workflow
This commit is contained in:
parent
b04b6a579d
commit
e1d2176784
1 changed files with 21 additions and 0 deletions
21
.github/workflows/flakestry-publish.yaml
vendored
Normal file
21
.github/workflows/flakestry-publish.yaml
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
name: "Publish a flake to flakestry"
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v?[0-9]+\.[0-9]+\.[0-9]+-nix[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
Reference in a new issue