ci: add pre-release workflow #4

Merged
t.behrendt merged 1 commits from ci-add-prerelease-workflow into main 2025-10-08 15:59:17 +02:00
3 changed files with 41 additions and 5 deletions
Showing only changes of commit 6bfb570257 - Show all commits

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:
fetch-depth: 0
- name: Increment tag
id: 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 }}
- name: Push tag
run: |
git tag ${{ steps.increment-tag.outputs.new-tag }}
git push origin ${{ steps.increment-tag.outputs.new-tag }}
- uses: ./.gitea/actions/release-git-tag
with:
tag: ${{ steps.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 }}