随便改点啥触发 GitHub Action #2
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: 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 | |
run: ./gradlew build # publishReleasePublicationToTeaconRepository |