fix: Change upload-artifact version to v4.5.0 #5
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
name: Legacy Lands Library | |
on: | |
push: | |
branches: [ "main" ] | |
jobs: | |
shadowJar: | |
name: shadow | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup Java JDK | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 21 | |
distribution: 'zulu' | |
cache: 'gradle' | |
- name: Make gradlew executable | |
run: chmod +x gradlew | |
- name: Build with Gradle | |
run: ./gradlew shadowJar | |
- name: Set outputs | |
id: short_sha | |
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | |
- name: Get Repository Name | |
uses: MariachiBear/[email protected] | |
- name: Upload Artifact | |
uses: actions/[email protected] | |
with: | |
name: ${{ steps.repo-name.outputs.repository-name }} ${{ steps.short_sha.outputs.sha_short }} | |
path: | | |
annotation/build/libs/*.jar | |
cache/build/libs/*.jar | |
configuration/build/libs/*.jar | |
commons/build/libs/*.jar | |
mongodb/build/libs/*.jar |