From 72a373b703c4330267c2598b81dbcbf7ea7136f2 Mon Sep 17 00:00:00 2001 From: Timo Behrendt Date: Fri, 12 Dec 2025 20:33:13 +0100 Subject: [PATCH] ci: refactor release and prerelease into single workflow (#22) Reviewed-on: https://gitea.t000-n.de/t.behrendt/renovate-configs/pulls/22 Co-authored-by: Timo Behrendt Co-committed-by: Timo Behrendt --- .gitea/workflows/cd.yaml | 2 ++ .gitea/workflows/prerelease.yaml | 22 ---------------------- 2 files changed, 2 insertions(+), 22 deletions(-) delete mode 100644 .gitea/workflows/prerelease.yaml diff --git a/.gitea/workflows/cd.yaml b/.gitea/workflows/cd.yaml index 579a28b..d7eda87 100644 --- a/.gitea/workflows/cd.yaml +++ b/.gitea/workflows/cd.yaml @@ -4,6 +4,7 @@ on: push: branches: - main + workflow_dispatch: jobs: release: @@ -18,6 +19,7 @@ jobs: uses: https://gitea.t000-n.de/t.behrendt/conventional-semantic-git-tag-increment@0.1.1 with: token: ${{ secrets.GITEA_TOKEN }} + prerelease: ${{ github.event_name == 'workflow_dispatch' }} - uses: https://gitea.t000-n.de/t.behrendt/actions/release-git-tag@0.0.3 with: tag: ${{ steps.tag.outputs.new-tag }} diff --git a/.gitea/workflows/prerelease.yaml b/.gitea/workflows/prerelease.yaml deleted file mode 100644 index 1a98432..0000000 --- a/.gitea/workflows/prerelease.yaml +++ /dev/null @@ -1,22 +0,0 @@ -name: Prerelease - -on: - workflow_dispatch: - -jobs: - prerelease: - name: Prerelease - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 - 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 }}