diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index df22751c1b..4fc25655a6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,10 +32,18 @@ jobs: Version ${{ steps.read-version.outputs.version }} draft: true prerelease: false - - name: Create shaded jar for release + - name: Create Jar files for release if: ${{ !endsWith(steps.read-version.outputs.version, 'SNAPSHOT') }} run: | + java --version ./gradlew shadowJar + - name: Upload Jars to Release + if: ${{ !endsWith(steps.read-version.outputs.version, 'SNAPSHOT') }} + uses: svenstaro/upload-release-action@2.3.0 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + tag: v${{ steps.read-version.outputs.version }} + file: build/libs/javacord-${{ steps.read-version.outputs.version }}-shaded.jar - name: Update Release Version if: ${{ !endsWith(steps.read-version.outputs.version, 'SNAPSHOT') }} run: | @@ -46,13 +54,6 @@ jobs: git add gradle.properties git commit -am "Increment patch version and append -SNAPSHOT suffix" git push --set-upstream origin release-v${{ steps.read-version.outputs.version }} - - name: Upload shaded jar to release - if: ${{ !endsWith(steps.read-version.outputs.version, 'SNAPSHOT') }} - uses: svenstaro/upload-release-action@2.3.0 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - tag: v${{ steps.read-version.outputs.version }} - file: ${{ github.workspace }}/build/libs/javacord-${{ steps.read-version.outputs.version }}-shaded.jar - name: Create Release Pull Request if: ${{ !endsWith(steps.read-version.outputs.version, 'SNAPSHOT') }} id: cpr diff --git a/gradle.properties b/gradle.properties index abceed3f86..9583da3ad5 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,4 +2,4 @@ # the whole org.gradle.jvmargs line can be removed after that is fixed org.gradle.jvmargs = -Duser.language=en -Xmx512m -XX:MaxMetaspaceSize=256m org.gradle.caching = true -version = 3.6.7 +version = 3.6.8