diff --git a/.gitea/workflows/cd.yaml b/.gitea/workflows/cd.yaml index 6bd7c1c..73ee081 100644 --- a/.gitea/workflows/cd.yaml +++ b/.gitea/workflows/cd.yaml @@ -14,11 +14,11 @@ jobs: with: fetch-depth: 0 - name: Increment tag - id: increment-tag - uses: https://gitea.t000-n.de/t.behrendt/conventional-semantic-git-tag-increment@0.0.10 + id: tag + uses: https://gitea.t000-n.de/t.behrendt/conventional-semantic-git-tag-increment@0.1.2 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: https://gitea.t000-n.de/t.behrendt/actions/release-git-tag@0.0.1 + 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..be5c620 --- /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@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.2 + with: + token: ${{ secrets.GITEA_TOKEN }} + prerelease: true + - name: Push tag + uses: https://gitea.t000-n.de/t.behrendt/actions/release-git-tag@0.0.1 + with: + tag: ${{ steps.tag.outputs.new-tag }}