mirror of
https://github.com/ObNitram/git-release.git
synced 2026-03-22 11:52:19 +01:00
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
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
|