From 1587369ec531b9145ecf8b3c13667c7ae8636e28 Mon Sep 17 00:00:00 2001 From: Egor Koleda Date: Tue, 31 Mar 2020 18:00:15 +0300 Subject: [PATCH] [ANY] added artifacts creation & uploading --- .github/workflows/push.yml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 2fa7e3de..f331394a 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -25,4 +25,25 @@ jobs: run: chmod +x gradlew - name: Build with Gradle - run: ./gradlew build \ No newline at end of file + run: ./gradlew build + + - name: Create artifacts + run: | + mkdir -p artifacts/modules + cd LaunchServer/build/libs/ + zip -r -9 ../../../artifacts/libraries.zip * -x "LaunchServer.jar" -x "LaunchServer-clean.jar" + cp LaunchServer.jar ../../../artifacts/LaunchServer.jar + cd ../../../ServerWrapper/build/libs + cp ServerWrapper.jar ../../../artifacts/ServerWrapper.jar + cd ../../../LauncherAuthlib/build/libs + cp LauncherAuthlib.jar ../../../artifacts/LauncherAuthlib.jar + cd ../../../ + cp modules/*_module/build/libs/*.jar artifacts/modules + cp modules/*_swmodule/build/libs/*.jar artifacts/modules + cp modules/*_lmodule/build/libs/*.jar artifacts/modules + + - name: Upload artifacts + uses: actions/upload-artifact@v1 + with: + name: Launcher + path: artifacts