-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'MusicBot/master'
# Conflicts: # pom.xml # src/main/java/com/jagrosh/jmusicbot/JMusicBot.java # src/main/java/com/jagrosh/jmusicbot/utils/OtherUtil.java
- Loading branch information
Showing
26 changed files
with
230 additions
and
132 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: Make Release | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version_number: | ||
description: 'Version Number' | ||
required: true | ||
type: string | ||
info: | ||
description: 'Description of this Release' | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
build_jar: | ||
name: Build Jar | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set up JDK 8 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '8' | ||
distribution: 'adopt' | ||
cache: maven | ||
- name: Set Version | ||
uses: datamonsters/replace-action@v2 | ||
with: | ||
files: 'pom.xml' | ||
replacements: 'Snapshot=${{ github.event.inputs.version_number }}' | ||
- name: Build with Maven | ||
run: mvn --batch-mode --update-snapshots verify | ||
- name: Rename jar | ||
run: mv target/*-All.jar JMusicBot-${{ github.event.inputs.version_number }}.jar | ||
- name: Upload jar | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: jar | ||
path: JMusicBot-${{ github.event.inputs.version_number }}.jar | ||
if-no-files-found: error | ||
create_release: | ||
name: Create Release | ||
runs-on: ubuntu-latest | ||
needs: build_jar | ||
steps: | ||
- name: Download a Build Artifact | ||
uses: actions/[email protected] | ||
with: | ||
name: jar | ||
path: . | ||
- name: Show Artifacts | ||
run: ls -R | ||
- name: Create Release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
tag: ${{ github.event.inputs.version_number }} | ||
name: Version ${{ github.event.inputs.version_number }} | ||
draft: true | ||
prerelease: false | ||
artifacts: "*.jar" | ||
body: | | ||
${{ github.event.inputs.info }} | ||
--- | ||
### Setup | ||
https://jmusicbot.com/setup | ||
https://jmusicbot.com/config | ||
# Download: [JMusicBot-${{ github.event.inputs.version_number }}.jar](https://github.com/jagrosh/MusicBot/releases/download/${{ github.event.inputs.version_number }}/JMusicBot-${{ github.event.inputs.version_number }}.jar) |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Test | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 8 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '8' | ||
distribution: 'adopt' | ||
cache: maven | ||
- name: Build with Maven | ||
run: mvn --batch-mode --update-snapshots verify |
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
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
Oops, something went wrong.