Skip to content

Commit 39a7e13

Browse files
authored
Create publish.yaml (#2100)
1 parent ba28eb0 commit 39a7e13

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/publish.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: "Publish a flake to flakestry"
2+
on:
3+
push:
4+
tags:
5+
- "v?[0-9]+.[0-9]+.[0-9]+"
6+
- "v?[0-9]+.[0-9]+"
7+
workflow_dispatch:
8+
inputs:
9+
tag:
10+
description: "The existing tag to publish"
11+
type: "string"
12+
required: true
13+
jobs:
14+
publish-flake:
15+
runs-on: ubuntu-latest
16+
permissions:
17+
id-token: "write"
18+
contents: "read"
19+
steps:
20+
- uses: flakestry/flakestry-publish@main
21+
with:
22+
version: "${{ inputs.tag || github.ref_name }}"

0 commit comments

Comments
 (0)