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