This repository has been archived by the owner on Dec 30, 2024. It is now read-only.
添加自动构建*n #8
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: "Dev Build" | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'zulu' | |
- name: Setup Gradle | |
uses: gradle/[email protected] | |
- name: Grant execute permission for Gradle wrapper | |
run: chmod +x ./gradlew | |
- name: Execute Gradle build | |
run: ./gradlew shadowJar | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: Package JAR | |
path: build/libs |