From 1d0f0f6709e8e1ef9df82ed74b087a03c04ff7f6 Mon Sep 17 00:00:00 2001 From: Timo Behrendt Date: Wed, 25 Feb 2026 22:09:39 +0100 Subject: [PATCH] ci: bootstrap --- .gitea/workflows/cd.yaml | 24 ++++++++++++++++++++++++ .gitea/workflows/prerelease.yaml | 23 +++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 .gitea/workflows/cd.yaml create mode 100644 .gitea/workflows/prerelease.yaml diff --git a/.gitea/workflows/cd.yaml b/.gitea/workflows/cd.yaml new file mode 100644 index 0000000..d82ad91 --- /dev/null +++ b/.gitea/workflows/cd.yaml @@ -0,0 +1,24 @@ +name: CD + +on: + push: + branches: + - main + +jobs: + release: + name: Release + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + fetch-depth: 0 + - name: Increment tag + id: tag + uses: https://gitea.t000-n.de/t.behrendt/conventional-semantic-git-tag-increment@8d27605e8e6b2990e92e5aa75d703e602b8c4b2a # 0.1.28 + with: + token: ${{ secrets.GITEA_TOKEN }} + - name: Push tag + uses: https://gitea.t000-n.de/t.behrendt/actions/release-git-tag@8973a9f9ff51c16b937364e0047e7ad07e937d3f # 0.1.4 + with: + tag: ${{ steps.tag.outputs.new-tag }} diff --git a/.gitea/workflows/prerelease.yaml b/.gitea/workflows/prerelease.yaml new file mode 100644 index 0000000..086b3ed --- /dev/null +++ b/.gitea/workflows/prerelease.yaml @@ -0,0 +1,23 @@ +name: Prerelease + +on: + workflow_dispatch: + +jobs: + prerelease: + name: Prerelease + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + fetch-depth: 0 + - name: Increment tag + id: tag + uses: https://gitea.t000-n.de/t.behrendt/conventional-semantic-git-tag-increment@8d27605e8e6b2990e92e5aa75d703e602b8c4b2a # 0.1.28 + with: + token: ${{ secrets.GITEA_TOKEN }} + prerelease: true + - name: Push tag + uses: https://gitea.t000-n.de/t.behrendt/actions/release-git-tag@8973a9f9ff51c16b937364e0047e7ad07e937d3f # 0.1.4 + with: + tag: ${{ steps.tag.outputs.new-tag }}