complete ci

This commit is contained in:
2025-10-08 16:26:31 +02:00
parent d6fb505c5a
commit 1a850b98e3
4 changed files with 62 additions and 1 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 }}

23
.gitea/workflows/cd.yaml Normal file
View File

@@ -0,0 +1,23 @@
name: CD
on:
push:
branches:
- main
jobs:
release:
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 }}
- uses: ./.gitea/actions/release-git-tag
with:
tag: ${{ steps.tag.outputs.new-tag }}

View File

@@ -4,7 +4,8 @@ on:
pull_request:
jobs:
build:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5

View File

@@ -0,0 +1,22 @@
name: Prerelease
on:
workflow_dispatch:
jobs:
prerelease:
name: Prerelease
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 }}