From b1c0e94a4be788ac1b4730ca286c88da6799fd00 Mon Sep 17 00:00:00 2001 From: Ben Woo <30431861+benwoo1110@users.noreply.github.com> Date: Tue, 22 Aug 2023 21:38:23 +0800 Subject: [PATCH] fix: Update for production --- .github/workflows/call.github_release.yml | 16 ++++++++-------- .github/workflows/main.prerelease.yml | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/call.github_release.yml b/.github/workflows/call.github_release.yml index f015da43..b7336506 100644 --- a/.github/workflows/call.github_release.yml +++ b/.github/workflows/call.github_release.yml @@ -49,12 +49,12 @@ jobs: - name: Validate Gradle wrapper uses: gradle/wrapper-validation-action@v1 - # - name: Build and test - # uses: gradle/gradle-build-action@v2 - # with: - # arguments: clean build -x assemble -x shadowJar - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Build and test + uses: gradle/gradle-build-action@v2 + with: + arguments: clean build -x assemble -x shadowJar -x checkStyleMain -x checkStyleTest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Create release id: release @@ -65,11 +65,11 @@ jobs: version_bump: ${{ inputs.version_bump }} promote_from: ${{ inputs.promote_from }} - - name: Build package # change to publish + - name: Publish package if: steps.release.outputs.release_created == 'true' uses: gradle/gradle-build-action@v2 with: - arguments: build -x checkStyleMain -x checkStyleTest -x test + arguments: publish -x checkStyleMain -x checkStyleTest -x test env: GITHUB_VERSION: ${{ steps.release.outputs.publish_version }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/main.prerelease.yml b/.github/workflows/main.prerelease.yml index 6dc202eb..2f743fb8 100644 --- a/.github/workflows/main.prerelease.yml +++ b/.github/workflows/main.prerelease.yml @@ -10,7 +10,7 @@ jobs: secrets: inherit with: release_mode: prerelease - version_bump: patch # change to prlabel + version_bump: prlabel platform_uploads_on_push: needs: github_release_on_push