mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 03:31:15 +03:00
[ANY] added artifacts creation & uploading
This commit is contained in:
parent
12583aec89
commit
1587369ec5
1 changed files with 22 additions and 1 deletions
23
.github/workflows/push.yml
vendored
23
.github/workflows/push.yml
vendored
|
@ -25,4 +25,25 @@ jobs:
|
||||||
run: chmod +x gradlew
|
run: chmod +x gradlew
|
||||||
|
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
run: ./gradlew build
|
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
|
||||||
|
|
Loading…
Reference in a new issue