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] =?UTF-8?q?=F0=9F=92=9A=20Update=20release=20workflow=20to?= =?UTF-8?q?=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