From bdf822a924dc86fc989cb57094dfe2710eb2130d Mon Sep 17 00:00:00 2001 From: Theo Brigitte Date: Wed, 19 Nov 2025 20:31:11 +0100 Subject: [PATCH 1/2] Add CI release action --- .github/workflows/release.yaml | 28 ++++++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..a0f5f55 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,28 @@ +name: release + +on: + push: + tags: + - v* + +jobs: + release: + runs-on: ubuntu-24.04 + permissions: + contents: write + steps: + - name: Checkout + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Build + run: make build + - name: Create Release + uses: ncipollo/release-action@v1 + with: + artifacts: build/trk.tar.gz + draft: true + generateReleaseNotes: true + allowUpdates: true + skipIfReleaseExists: true + updateOnlyUnreleased: true diff --git a/README.md b/README.md index 2a21c81..3f4cfe8 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,9 @@
+ [![GitHub Release](https://img.shields.io/github/v/release/TheoBrigitte/trk)](https://github.com/TheoBrigitte/trk) [![test](https://github.com/TheoBrigitte/trk/actions/workflows/test.yaml/badge.svg)](https://github.com/TheoBrigitte/trk/actions/workflows/test.yaml) + ![GitHub Downloads](https://img.shields.io/github/downloads/TheoBrigitte/trk/total)
From 97e4c6393fb790743adaee25a90872162fb7cd5e Mon Sep 17 00:00:00 2001 From: Theo Brigitte Date: Wed, 19 Nov 2025 20:50:07 +0100 Subject: [PATCH 2/2] fix workflow file --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a0f5f55..2aa3b89 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -12,7 +12,7 @@ jobs: contents: write steps: - name: Checkout - - uses: actions/checkout@v4 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Build