From 41043f5dcbc78c854eaa68fdc57b525ff8a06d7d Mon Sep 17 00:00:00 2001 From: Adam Kobus Date: Sun, 6 Feb 2022 11:27:27 +0100 Subject: [PATCH] MAVEN_SNAPSHOT env is now set globally in release workflow --- .github/workflows/publish-release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 7c4291d..6d3f63e 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -4,6 +4,9 @@ on: release: types: [released] +env: + MAVEN_SNAPSHOT: false + jobs: publish: name: Publish release build @@ -30,8 +33,6 @@ jobs: - name: Publish to MavenCentral run: ./gradlew publishReleasePublicationToSonatypeRepository --max-workers 1 closeAndReleaseSonatypeStagingRepository - env: - MAVEN_SNAPSHOT: false - name: Clean up secrets if: always()