From 608e6444ca6864da208f8e0946dc65b0e35227ae Mon Sep 17 00:00:00 2001 From: xkball <45330674+xkball@users.noreply.github.com> Date: Wed, 9 Oct 2024 18:35:48 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=98=E5=8E=9Fnightly.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/nightly.yml | 40 +++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/nightly.yml diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml new file mode 100644 index 00000000..0565eca8 --- /dev/null +++ b/.github/workflows/nightly.yml @@ -0,0 +1,40 @@ +name: XKDeco 1.21-NeoForge Nightly Build +on: + push: + paths: + - 'kiwi-jiachen' + - 'kiwi-jiachen/**' + - 'src/**' + - 'build.gradle' + workflow_dispatch: +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: true + - name: Setup Java 21 + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '21' + - name: Build Kiwi + id: build-kiwi + run: cd kiwi-jiachen && chmod +x gradlew && ./gradlew shadowJar + - name : Copy Kiwi + id: copy-kiwi + run: mkdir libs && cp kiwi-jiachen/build/libs/* ./libs/ + - name: Build + id: build + env: + ARCHIVE_ENDPOINT: ${{ secrets.TEACON_ARCHIVE_ENDPOINT }} + ARCHIVE_ACCESS_KEY: ${{ secrets.TEACON_ARCHIVE_ACCESS_KEY }} + ARCHIVE_SECRET_KEY: ${{ secrets.TEACON_ARCHIVE_SECRET_KEY }} + run: ./gradlew -Dorg.gradle.s3.endpoint=$ARCHIVE_ENDPOINT publishReleasePublicationToTeaconRepository githubActionOutput + - name: GitHub Action Artifact + uses: actions/upload-artifact@v4 + with: + name: ${{ steps.build.outputs.artifact_name }} + path: ${{ steps.build.outputs.artifact_path }} \ No newline at end of file