Skip to content

Commit fc33d17

Browse files
authored
Add CI release action (#2)
1 parent ed0a972 commit fc33d17

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

.github/workflows/release.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: release
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-24.04
11+
permissions:
12+
contents: write
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
- name: Build
19+
run: make build
20+
- name: Create Release
21+
uses: ncipollo/release-action@v1
22+
with:
23+
artifacts: build/trk.tar.gz
24+
draft: true
25+
generateReleaseNotes: true
26+
allowUpdates: true
27+
skipIfReleaseExists: true
28+
updateOnlyUnreleased: true

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
<div align="center">
66

7+
[![GitHub Release](https://img.shields.io/github/v/release/TheoBrigitte/trk)](https://github.com/TheoBrigitte/trk)
78
[![test](https://github.com/TheoBrigitte/trk/actions/workflows/test.yaml/badge.svg)](https://github.com/TheoBrigitte/trk/actions/workflows/test.yaml)
9+
![GitHub Downloads](https://img.shields.io/github/downloads/TheoBrigitte/trk/total)
810

911
</div>
1012

0 commit comments

Comments
 (0)