ci: refactor release and prerelease into single workflow
All checks were successful
CI / Test (common.json) (pull_request) Successful in 16s
CI / Test (helm.json) (pull_request) Successful in 14s
CI / Test (docker-compose.json) (pull_request) Successful in 49s
CI / Test (k8s.json) (pull_request) Successful in 50s
CI / Test (action.json) (pull_request) Successful in 48s
All checks were successful
CI / Test (common.json) (pull_request) Successful in 16s
CI / Test (helm.json) (pull_request) Successful in 14s
CI / Test (docker-compose.json) (pull_request) Successful in 49s
CI / Test (k8s.json) (pull_request) Successful in 50s
CI / Test (action.json) (pull_request) Successful in 48s
This commit is contained in:
@@ -4,6 +4,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
@@ -18,6 +19,7 @@ jobs:
|
|||||||
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 }}
|
||||||
|
prerelease: ${{ github.event_name == 'workflow_dispatch' }}
|
||||||
- uses: https://gitea.t000-n.de/t.behrendt/actions/release-git-tag@0.0.3
|
- uses: https://gitea.t000-n.de/t.behrendt/actions/release-git-tag@0.0.3
|
||||||
with:
|
with:
|
||||||
tag: ${{ steps.tag.outputs.new-tag }}
|
tag: ${{ steps.tag.outputs.new-tag }}
|
||||||
|
|||||||
@@ -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 }}
|
|
||||||
Reference in New Issue
Block a user