From 2995b0a7770dae17de9673bf4a5b204a73973eae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Gremaud?= Date: Wed, 4 Dec 2024 07:56:21 +0100 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=92=9A=20Update=20release=20workflow?= =?UTF-8?q?=20to=20use=20'git=20commit=20-a'=20for=20automatic=20staging?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dca6916..4034262 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -57,11 +57,13 @@ jobs: - name: Commit and push changes if: ${{ steps.release-version.outputs.release-version != steps.current-version.outputs.current-version }} run: | - git add . - git commit -m "🚀 Release $RELEASE_VERSION" + git commit -a -m "🚀 Release $RELEASE_VERSION" || exit 0 git tag -f $RELEASE_VERSION git push origin $RELEASE_VERSION --force git push origin HEAD:main + env: + RELEASE_VERSION: ${{ steps.release-version.outputs.release-version }} + publish-docs: runs-on: ubuntu-latest From 9a929a6499bb5faf93185af7c8a2b4e9f54bdcdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Gremaud?= Date: Wed, 4 Dec 2024 08:01:34 +0100 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=92=9A=20Set=20RELEASE=5FVERSION=20en?= =?UTF-8?q?vironment=20variable=20in=20release=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4034262..1fb337e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -53,6 +53,8 @@ jobs: run: | uv run hatch version $RELEASE_VERSION uv lock + env: + RELEASE_VERSION: ${{ steps.release-version.outputs.release-version }} - name: Commit and push changes if: ${{ steps.release-version.outputs.release-version != steps.current-version.outputs.current-version }}