Skip to content

Commit 337a95c

Browse files
committed
ci: set up release workflow
1 parent d439ec5 commit 337a95c

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.github/workflows/release.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: Release a tag
3+
on:
4+
push:
5+
tags:
6+
- v[0-9]+.[0-9]+.[0-9]+
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v5
13+
with:
14+
fetch-depth: 0
15+
lfs: true
16+
17+
- name: Fetch and checkout LFS objects
18+
run: |
19+
git lfs fetch --all
20+
git lfs checkout
21+
22+
- uses: jdx/mise-action@v3
23+
with:
24+
install: true
25+
26+
- name: release tag
27+
run: mise run release
28+
env:
29+
RELEASE_VERSION: ${{ github.ref_name }}

mise.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,9 @@ run = [
105105
]
106106
outputs = ["dist/editors", "dist/list"]
107107
sources = ["bin/**"]
108+
109+
[tasks."release"]
110+
description = "Release a go module"
111+
run = [
112+
"GOPROXY=proxy.golang.org go list -m github.com/fiffeek/teastraw@${RELEASE_VERSION}",
113+
]

0 commit comments

Comments
 (0)