Publish a flake to flakestry #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-FileCopyrightText: 2024 Luflosi <[email protected]> | |
# SPDX-License-Identifier: CC0-1.0 | |
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: | |
flakestry-publish: | |
runs-on: "ubuntu-latest" | |
permissions: | |
id-token: "write" | |
contents: "read" | |
steps: | |
- uses: flakestry/flakestry-publish@main | |
with: | |
version: "${{ inputs.tag || github.ref_name }}" |