From bb1c6f8570294cacc7d43d66853fba309b59d65e Mon Sep 17 00:00:00 2001 From: servostar Date: Mon, 25 Nov 2024 14:52:35 +0100 Subject: [PATCH 1/3] ci: push version bump of typst.toml to origin --- .gitea/workflows/prepare.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitea/workflows/prepare.yml b/.gitea/workflows/prepare.yml index 585353e..389abb7 100644 --- a/.gitea/workflows/prepare.yml +++ b/.gitea/workflows/prepare.yml @@ -38,6 +38,7 @@ 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}" -- 2.40.1 From 7c3ac0381c744f2959c2511ae0ceb446f8aaf2c7 Mon Sep 17 00:00:00 2001 From: servostar Date: Mon, 25 Nov 2024 14:52:51 +0100 Subject: [PATCH 2/3] ci: push version tag to origin --- .gitea/workflows/prepare.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/prepare.yml b/.gitea/workflows/prepare.yml index 389abb7..0121ee7 100644 --- a/.gitea/workflows/prepare.yml +++ b/.gitea/workflows/prepare.yml @@ -42,5 +42,5 @@ jobs: echo "::endgroup::" echo "::group::{Tag commit}" git tag -m "Release" "${VERSION}" - git push "${VERSION}" + git push origin "${VERSION}" echo "::endgroup::" -- 2.40.1 From cc6668827d20f58973a9195721ea033064e68906 Mon Sep 17 00:00:00 2001 From: servostar Date: Mon, 25 Nov 2024 14:53:21 +0100 Subject: [PATCH 3/3] ci: run release on pushed version tag --- .gitea/workflows/release.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 -- 2.40.1