ci: add pre-release workflow (#4)
All checks were successful
CD / Release (push) Successful in 11s

Reviewed-on: #4
Co-authored-by: t.behrendt <t.behrendt@t00n.de>
Co-committed-by: t.behrendt <t.behrendt@t00n.de>
This commit was merged in pull request #4.
This commit is contained in:
2025-10-08 15:59:17 +02:00
committed by t.behrendt
parent 2e2dcc7fbe
commit 4e3b94a606
3 changed files with 41 additions and 5 deletions

View File

@@ -0,0 +1,15 @@
name: Release Git tag
description: Release the Git tag
inputs:
tag:
description: The tag to release
required: true
runs:
using: "composite"
steps:
- shell: bash
run: |
git tag ${{ inputs.tag }}
git push origin ${{ inputs.tag }}

View File

@@ -14,11 +14,10 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Increment tag - name: Increment tag
id: increment-tag id: tag
uses: https://gitea.t000-n.de/t.behrendt/conventional-semantic-git-tag-increment@0.1.1 uses: https://gitea.t000-n.de/t.behrendt/conventional-semantic-git-tag-increment@0.1.1
with: with:
token: ${{ secrets.GITEA_TOKEN }} token: ${{ secrets.GITEA_TOKEN }}
- name: Push tag - uses: ./.gitea/actions/release-git-tag
run: | with:
git tag ${{ steps.increment-tag.outputs.new-tag }} tag: ${{ steps.tag.outputs.new-tag }}
git push origin ${{ steps.increment-tag.outputs.new-tag }}

View File

@@ -0,0 +1,22 @@
name: Prerelease
on:
workflow_dispatch:
jobs:
prerelease:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Increment tag
id: tag
uses: https://gitea.t000-n.de/t.behrendt/conventional-semantic-git-tag-increment@0.1.1
with:
token: ${{ secrets.GITEA_TOKEN }}
prerelease: true
- uses: ./.gitea/actions/release-git-tag
with:
tag: ${{ steps.tag.outputs.new-tag }}