From 407f3cae3e4fbf57707fd198fad0a836ca04b07f Mon Sep 17 00:00:00 2001 From: Him188 <Him188@mamoe.net> Date: Fri, 6 Mar 2020 22:27:59 +0800 Subject: [PATCH] Create shadow.yml --- .github/workflows/shadow.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/shadow.yml diff --git a/.github/workflows/shadow.yml b/.github/workflows/shadow.yml new file mode 100644 index 000000000..6c6593f09 --- /dev/null +++ b/.github/workflows/shadow.yml @@ -0,0 +1,34 @@ +name: ShadowPublish + +on: + release: + types: + - created + +jobs: + shadow: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Build with Gradle and shadowJar + run: ./gradlew :mirai-core:shadowJar :mirai-core-qqandroid:shadowJar + - name: Upload artifact + uses: actions/upload-artifact@v1.0.0 + with: + # Artifact name + name: mirai-core-all + # Directory containing files to upload + path: mirai-core/build/libs/mirai-core-*-all.jar + - name: Upload artifact + uses: actions/upload-artifact@v1.0.0 + with: + # Artifact name + name: mirai-core-qqandroid-all + # Directory containing files to upload + path: mirai-core-qqandroid/build/libs/mirai-core-qqandroid-*-all.jar