From eba22535aff5a28d2e5bd1938038e792ba7fe768 Mon Sep 17 00:00:00 2001 From: onebeastchris Date: Wed, 13 Aug 2025 01:36:40 +0300 Subject: [PATCH] =?UTF-8?q?Update=20actions,=20or,=20attempt=20=E4=B8=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 2 +- .github/workflows/pullrequest.yml | 44 ++++++++----------------------- 2 files changed, 12 insertions(+), 34 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b823667..c8810ee 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,7 +24,7 @@ jobs: - name: Setup Gradle uses: GeyserMC/actions/setup-gradle-composite@master with: - setup-java_java-version: 21 + setup-java_java-version: 17 - name: Build Thunder run: ./gradlew build diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml index d7e1899..e9dba42 100644 --- a/.github/workflows/pullrequest.yml +++ b/.github/workflows/pullrequest.yml @@ -1,10 +1,9 @@ name: Build Pull Request on: - pull_request_target: + workflow_dispatch: + pull_request: paths-ignore: - - '.github/ISSUE_TEMPLATE/*.yml' - - '.idea/copyright/*.xml' - '.gitignore' - 'LICENSE' - 'README.md' @@ -13,38 +12,17 @@ jobs: build: runs-on: ubuntu-latest steps: - - name: Checkout repository and submodules - # See https://github.com/actions/checkout/commits - uses: actions/checkout@72f2cec99f417b1a1c5e2e88945068983b7965f9 + - name: Setup Gradle + uses: GeyserMC/actions/setup-gradle-composite@master with: - repository: ${{ github.event.pull_request.head.repo.full_name }} - ref: ${{ github.event.pull_request.head.sha }} - submodules: recursive + setup-java_java-version: 17 - - name: Validate Gradle Wrapper - # See https://github.com/gradle/wrapper-validation-action/commits - uses: gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4 + - name: Build Thunder + run: ./gradlew build - # See https://github.com/actions/setup-java/commits - - uses: actions/setup-java@4075bfc1b51bf22876335ae1cd589602d60d8758 - with: - java-version: 17 - distribution: temurin - - - name: Build - # See https://github.com/gradle/gradle-build-action/commits - uses: gradle/gradle-build-action@3bfe3a46584a206fb8361cdedd0647b0c4204232 - with: - arguments: build - gradle-home-cache-cleanup: true - - - name: Archive artifacts (Boostrap) - # See https://github.com/actions/upload-artifact/commits - uses: actions/upload-artifact@6027e3dd177782cd8ab9af838c04fd81a07f1d47 + - name: Archive artifacts + uses: actions/upload-artifact@v4 if: success() with: - name: PackConverter CLI - path: | - bootstrap/build/libs/*.jar - !bootstrap/build/libs/bootstrap-*.jar - if-no-files-found: error + name: Thunder + path: bootstrap/build/libs/Thunder.jar \ No newline at end of file