Skip to content

Commit 30977b8

Browse files
authored
Create publish.yml (#3)
2 parents 77dbdf1 + 5e8f5c0 commit 30977b8

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/publish.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: "Publish tags to FlakeHub"
2+
on:
3+
push:
4+
tags:
5+
- "v?[0-9]+.[0-9]+.[0-9]+*"
6+
workflow_dispatch:
7+
inputs:
8+
tag:
9+
description: "The existing tag to publish to FlakeHub"
10+
type: "string"
11+
required: true
12+
jobs:
13+
flakehub-publish:
14+
runs-on: "ubuntu-latest"
15+
permissions:
16+
id-token: "write"
17+
contents: "read"
18+
steps:
19+
- uses: "actions/checkout@v4"
20+
with:
21+
ref: "${{ (inputs.tag != null) && format('refs/tags/{0}', inputs.tag) || '' }}"
22+
- uses: "DeterminateSystems/nix-installer-action@main"
23+
with:
24+
determinate: true
25+
- uses: "DeterminateSystems/flakehub-push@main"
26+
with:
27+
visibility: "public"
28+
name: "simondeeley/tree-sitter-dev"
29+
tag: "${{ inputs.tag }}"
30+
include-output-paths: true

0 commit comments

Comments
 (0)