Update build actions (#475)

This commit is contained in:
zeng-git
2025-03-13 14:22:09 +08:00
committed by GitHub
parent 7baf538a76
commit 2141ffe7f0
+6 -4
View File
@@ -6,16 +6,18 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- name: Set up OpenJDK 17 - name: Set up OpenJDK 17
uses: actions/setup-java@v2 uses: actions/setup-java@v4
with: with:
java-version: '17' java-version: '17'
distribution: 'adopt' # You can choose other OpenJDK distributions. distribution: 'adopt' # You can choose other OpenJDK distributions.
- name: Update Build Script (Before Build)
run: ./gradlew updateBuildScript
- name: Build with Gradle - name: Build with Gradle
run: ./gradlew build # Ensure your gradlew script is executable run: ./gradlew build
- name: Upload Artifact - name: Upload Artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v4
with: with:
name: AE2-UEL name: AE2-UEL
path: build/libs/*.jar # Make sure this path matches the location of your build artifacts path: build/libs/*.jar # Make sure this path matches the location of your build artifacts