fix deprecation, simplified
This commit is contained in:
@@ -22,30 +22,19 @@ jobs:
|
|||||||
check-latest: true
|
check-latest: true
|
||||||
|
|
||||||
- name: Set up Gradle
|
- name: Set up Gradle
|
||||||
uses: gradle/gradle-build-action@v3
|
uses: gradle/actions/setup-gradle@v3
|
||||||
|
with:
|
||||||
- name: Read mod version
|
gradle-home-cache-cleanup: true
|
||||||
id: get_version
|
|
||||||
run: |
|
|
||||||
VERSION=$(grep '^mod_version' gradle.properties | head -n 1 | cut -d'=' -f2 | xargs)
|
|
||||||
echo "mod_version=${VERSION}" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- name: Grant execute permission for gradlew
|
- name: Grant execute permission for gradlew
|
||||||
run: chmod +x gradlew
|
run: chmod +x gradlew
|
||||||
|
|
||||||
- name: Build release JAR
|
- name: Build (release)
|
||||||
run: ./gradlew clean build -x test --no-daemon --stacktrace
|
run: ./gradlew clean build -x test --no-daemon --stacktrace
|
||||||
|
|
||||||
- name: Prepare release artifact
|
|
||||||
run: |
|
|
||||||
VERSION="${{ steps.get_version.outputs.mod_version }}"
|
|
||||||
mkdir -p build/release
|
|
||||||
# Source JAR should already be saturnclient-<version>.jar
|
|
||||||
cp "build/libs/saturnclient-${VERSION}.jar" "build/release/saturnclient-${VERSION}.jar"
|
|
||||||
|
|
||||||
- name: Upload build artifact
|
- name: Upload build artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: "saturnclient-${{ steps.get_version.outputs.mod_version }}"
|
name: saturnclient-latest
|
||||||
path: "build/release/saturnclient-${{ steps.get_version.outputs.mod_version }}.jar"
|
path: build/libs/saturnclient-*.jar
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|||||||
Reference in New Issue
Block a user