forked from Javacord/Javacord
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
61ec713
commit fca939d
Showing
2 changed files
with
10 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
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/[email protected] | ||
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters