Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions .github/workflows/maven-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,33 @@ jobs:
strategy:
matrix:
# Use these Java versions
java: [8]
java: [21]
# and run on both Linux and Windows
os: [ubuntu-20.04]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'adopt'
distribution: 'zulu'
cache: maven

- name: Build with Maven
run: mvn install

- name: Publish to GitHub Actions
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: Artifact
path: target/Titanium.jar

- name: Get Commit Hash
id: hash_commit
uses: pr-mpt/actions-commit-hash@v2
uses: prompt/actions-commit-hash@v3

- name: Create Draft Release
id: create_release
Expand All @@ -61,4 +62,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_id: ${{ steps.create_release.outputs.id }}
release_id: ${{ steps.create_release.outputs.id }}