Skip to content

Commit

Permalink
fix: attempt manual java publish
Browse files Browse the repository at this point in the history
  • Loading branch information
rawkode committed Sep 28, 2023
1 parent 6ae64d8 commit 72fe507
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/java-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,33 @@ jobs:
exit 1
fi
- if: ${{ matrix.language == 'java' && env.JAVA_PUBLISH == 'true' }}
name: Download java SDK
uses: actions/download-artifact@v2
with:
name: java-sdk.tar.gz
path: ${{ github.workspace}}/sdk/

- if: ${{ matrix.language == 'java' && env.JAVA_PUBLISH == 'true' }}
name: Uncompress java SDK
run: tar -zxf ${{github.workspace}}/sdk/java.tar.gz -C
${{github.workspace}}/sdk/java
shell: bash

- if: ${{ matrix.language == 'java' && env.JAVA_PUBLISH == 'true' }}
name: Set PACKAGE_VERSION to Env
run: echo "PACKAGE_VERSION=$(pulumictl get version --language generic)" >>
$GITHUB_ENV
shell: bash

- if: ${{ matrix.language == 'java' && env.JAVA_PUBLISH == 'true' }}
name: Publish Java SDK
uses: pulumi/pulumi-package-publisher@0058a106b68d8277f17bbea0cd29b2ff6e671adc
continue-on-error: true
uses: gradle/gradle-build-action@9b814496b50909128c6a52622b416c5ffa04db49
with:
sdk: java
arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository
build-root-directory: ./sdk/java
gradle-version: 7.4.1

strategy:
fail-fast: true
Expand Down

0 comments on commit 72fe507

Please sign in to comment.