ci: add pre-release workflow (#4)
All checks were successful
CD / Release (push) Successful in 11s
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:
15
.gitea/actions/release-git-tag/action.yaml
Normal file
15
.gitea/actions/release-git-tag/action.yaml
Normal 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 }}
|
||||
@@ -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 }}
|
||||
22
.gitea/workflows/prerelease.yaml
Normal file
22
.gitea/workflows/prerelease.yaml
Normal 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 }}
|
||||
Reference in New Issue
Block a user