diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 67ade8064..15631ddf4 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -315,11 +315,10 @@ jobs: path: ${{ github.workspace}}/sdk/ - name: Uncompress java SDK run: tar -zxf ${{github.workspace}}/sdk/java.tar.gz -C ${{github.workspace}}/sdk/java - - name: Set PACKAGE_VERSION to Env - run: echo "PACKAGE_VERSION=$(pulumictl get version --language generic)" >> - $GITHUB_ENV - name: Publish Java SDK uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa + env: + PACKAGE_VERSION: ${{ env.PROVIDER_VERSION }} with: arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository build-root-directory: ./sdk/java diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index 5b8b0cb19..f0b2b61c3 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -323,11 +323,10 @@ jobs: path: ${{ github.workspace}}/sdk/ - name: Uncompress java SDK run: tar -zxf ${{github.workspace}}/sdk/java.tar.gz -C ${{github.workspace}}/sdk/java - - name: Set PACKAGE_VERSION to Env - run: echo "PACKAGE_VERSION=$(pulumictl get version --language generic)" >> - $GITHUB_ENV - name: Publish Java SDK uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa + env: + PACKAGE_VERSION: ${{ env.PROVIDER_VERSION }} with: arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository build-root-directory: ./sdk/java @@ -348,8 +347,8 @@ jobs: with: repo: pulumi/pulumictl - name: Add SDK version tag - run: git tag sdk/v$(pulumictl get version --language generic) && git push origin - sdk/v$(pulumictl get version --language generic) + run: git tag "sdk/v$PROVIDER_VERSION" && git push origin + "sdk/v$PROVIDER_VERSION" name: prerelease on: push: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c502e658a..df6e9d599 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -321,11 +321,10 @@ jobs: path: ${{ github.workspace}}/sdk/ - name: Uncompress java SDK run: tar -zxf ${{github.workspace}}/sdk/java.tar.gz -C ${{github.workspace}}/sdk/java - - name: Set PACKAGE_VERSION to Env - run: echo "PACKAGE_VERSION=$(pulumictl get version --language generic)" >> - $GITHUB_ENV - name: Publish Java SDK uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa + env: + PACKAGE_VERSION: ${{ env.PROVIDER_VERSION }} with: arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository build-root-directory: ./sdk/java @@ -346,8 +345,8 @@ jobs: with: repo: pulumi/pulumictl - name: Add SDK version tag - run: git tag sdk/v$(pulumictl get version --language generic) && git push origin - sdk/v$(pulumictl get version --language generic) + run: git tag "sdk/v$PROVIDER_VERSION" && git push origin + "sdk/v$PROVIDER_VERSION" create_docs_build: name: Create docs build runs-on: ubuntu-latest