fix: Update for production

This commit is contained in:
Ben Woo 2023-08-22 21:38:23 +08:00
parent 61254bfccb
commit b1c0e94a4b
No known key found for this signature in database
GPG Key ID: FB2A3645536E12C8
2 changed files with 9 additions and 9 deletions

View File

@ -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 }}

View File

@ -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