This commit is contained in:
Shivaraj B H 2023-10-27 15:38:50 +05:30 committed by GitHub
parent 9c6a37d9d3
commit 94d80210d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

22
.github/workflows/flakestry.yaml vendored Normal file
View File

@ -0,0 +1,22 @@
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 }}"