From cc855667cc7daf886c622cefe066211cfad406d6 Mon Sep 17 00:00:00 2001 From: servostar Date: Mon, 25 Nov 2024 13:56:06 +0000 Subject: [PATCH] ci: fix-git-commands (#100) Release-As: v0.5.3 Reviewed-on: https://git.montehaselino.de/DHBW/dhbw-abb-typst-template/pulls/100 Co-authored-by: servostar Co-committed-by: servostar --- .gitea/workflows/prepare.yml | 3 ++- .gitea/workflows/release.yml | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/prepare.yml b/.gitea/workflows/prepare.yml index 585353e..0121ee7 100644 --- a/.gitea/workflows/prepare.yml +++ b/.gitea/workflows/prepare.yml @@ -38,8 +38,9 @@ jobs: sed -i "/version/c\version = \"${VERSION#v}\"" typst.toml git add typst.toml git commit -m "chore: bump release version to $VERSION" + git push origin main echo "::endgroup::" echo "::group::{Tag commit}" git tag -m "Release" "${VERSION}" - git push "${VERSION}" + git push origin "${VERSION}" echo "::endgroup::" diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 3a1526c..94275f7 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -1,10 +1,8 @@ name: Create Release on: push: - branches: - - main tags: - - v*.*.* + - 'v[0-9]+.[0-9]+.[0-9]+' jobs: build: name: Check Template and Build example