From 80852cf843d2ad4494d649905f8ba16bfca46f1e Mon Sep 17 00:00:00 2001 From: ObNitram Date: Sun, 18 Jan 2026 13:40:41 +0100 Subject: [PATCH] Add GitHub Actions workflow for automated release creation --- .github/workflows/release.yml | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..a7850d0 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,39 @@ +name: Release + +on: + push: + tags: + - "v[0-9]+.[0-9]+.[0-9]+" + +permissions: + contents: write + +jobs: + release: + name: Create Release + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v5 + + - name: Extract version from tag + id: version + run: echo "version=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT + + - name: Create Release + uses: softprops/action-gh-release@v2 + with: + name: Release ${{ steps.version.outputs.version }} + body: | + ## git-release ${{ steps.version.outputs.version }} + + Minimal tool to create and publish Git release tags following the vX.Y.Z format. + + See the [README](https://github.com/${{ github.repository }}/blob/${{ steps.version.outputs.version }}/README.md) for more details. + files: | + git-release + LICENSE + README.md + draft: false + prerelease: false