Skip to content

Commit

Permalink
Update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
s1204IT committed Apr 14, 2024
1 parent b3ffbdb commit ef07ed3
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 9 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,19 @@ on:

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Checkout
uses: actions/checkout@v4

- name: Set up JDK 11
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'adopt'
distribution: 'temurin'
cache: maven

- name: Build and Test with Maven
run: mvn --batch-mode --update-snapshots verify
22 changes: 16 additions & 6 deletions .github/workflows/make-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,41 +16,51 @@ jobs:
name: Build Jar
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up JDK 11
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'adopt'
distribution: 'temurin'
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
uses: actions/upload-artifact@v4
with:
name: jar
name: JMusicBot-${{ github.event.inputs.version_number }}
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/download-artifact@v3.0.0
uses: actions/download-artifact@v4
with:
name: jar
path: .

- name: Show Artifacts
run: ls -R

- name: Create Release
uses: ncipollo/release-action@v1
with:
Expand Down

0 comments on commit ef07ed3

Please sign in to comment.