Skip to content

Commit

Permalink
fix: remove java test build
Browse files Browse the repository at this point in the history
  • Loading branch information
rawkode committed Sep 29, 2023
1 parent 02523f3 commit 0b53bd1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 129 deletions.
124 changes: 0 additions & 124 deletions .github/workflows/java-test.yaml

This file was deleted.

22 changes: 17 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ env:
PYPI_USERNAME: "__token__"

# Java SDK
JAVA_VERSION: "11"
JAVAVERSION: "11"
JAVA_GEN_VERSION: v0.9.4
JAVA_PUBLISH: "false"
PUBLISH_REPO_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
PUBLISH_REPO_USERNAME: ${{ secrets.OSSRH_USERNAME }}
Expand Down Expand Up @@ -114,6 +115,9 @@ jobs:
- name: Install Pulumi CLI
uses: pulumi/action-install-pulumi-cli@b374ceb6168550de27c6eba92e01c1a774040e11 # tag=v2.0.0

- name: pulumi-java-gen
run: mkdir -p bin && pulumictl download-binary -n pulumi-language-java -v v0.9.4 -r pulumi/pulumi-java

- name: AWS Provider
run: pulumi plugin install resource aws 5.40.0

Expand All @@ -139,9 +143,8 @@ jobs:
- name: Setup Java
uses: actions/setup-java@v3
with:
cache: gradle
distribution: temurin
java-version: ${{ env.JAVA_VERSION }}
java-version: ${{ env.JAVAVERSION }}

- name: Setup Gradle
uses: gradle/gradle-build-action@v2
Expand Down Expand Up @@ -182,11 +185,20 @@ jobs:
dotnet nuget push ${{github.workspace}}/sdk/dotnet/bin/Debug/*.nupkg -s ${{ env.NUGET_FEED_URL }} -k ${{ env.NUGET_API_KEY }}
echo "done publishing packages"
- 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 0b53bd1

Please sign in to comment.