From a0c16db011f639c6d2e7eedab62ee84a17a38274 Mon Sep 17 00:00:00 2001 From: Blank038 Date: Wed, 30 Oct 2024 15:28:35 +0800 Subject: [PATCH] ci: Upload workflow file `build.yml` --- .github/workflows/build.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..e23a4d4 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,36 @@ +name: Build + +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Set up JDK + uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 8 + + - name: Setup Gradle + uses: gradle/gradle-build-action@v2 + with: + gradle-version: 7.5.1 + + - name: Gradle Build + run: | + chmod 755 ./gradlew + ./gradlew clean shadowJarAll + + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: eSync Package + path: build/libs/*.jar \ No newline at end of file