Commit 12a4258e authored by nanahira's avatar nanahira

Update .gitlab-ci.yml

parent 96bfc21a
Pipeline #39431 passed with stages
in 85 minutes and 54 seconds
......@@ -132,18 +132,29 @@ resources:
.pack:
stage: pack
only:
- tags
tags:
- linux
variables:
appVersion: $CI_COMMIT_TAG
username: $MYCARD_USERNAME
password: $MYCARD_PASSWORD
script:
- mkdir -p dist
- apt update; apt -y install curl git wget tar zstd jq
# - mkdir -p dist
- cd Builds/$BUILD_TARGET
- mv ../../Picture .
- mv ../../Deck .
- mv ../../Puzzle .
# - mv ../../Sound .
- rsync -a ../../Data/ ./Data
- tar -I 'zstd -T0' -cf ../../dist/mdpro3-$CI_COMMIT_REF_NAME-$TARGET_PLATFORM.tar.zst .
# - tar -I 'zstd -T0' -cf ../../dist/mdpro3-$CI_COMMIT_REF_NAME-$TARGET_PLATFORM.tar.zst .
- cd ../..
- git clone https://code.moenext.com/mycard/mycard-package-script.git mycard-package-script
- cd mycard-package-script
- ./index.sh makeBuild mdpro3 ../Builds/$BUILD_TARGET
- cd ..
artifacts:
paths:
- dist
......@@ -152,7 +163,7 @@ pack_windows:
extends: .pack
variables:
BUILD_TARGET: StandaloneWindows64
TARGET_PLATFORM: win32
platform: win32
dependencies:
- StandaloneWindows64
- resources
......@@ -161,7 +172,7 @@ pack_linux:
extends: .pack
variables:
BUILD_TARGET: StandaloneLinux64
TARGET_PLATFORM: linux
platform: linux
dependencies:
- StandaloneLinux64
- resources
......@@ -170,32 +181,8 @@ pack_macos:
extends: .pack
variables:
BUILD_TARGET: StandaloneOSX
TARGET_PLATFORM: darwin
platform: darwin
dependencies:
- StandaloneOSX
- resources
.deploy:
stage: deploy
only:
- master
- tags
tags:
- linux
dependencies:
- pack_windows
- pack_linux
- pack_macos
upload_to_minio:
extends: .deploy
script:
- aws s3 --endpoint=https://minio.moenext.com:9000 sync dist/ s3://mycard/mdpro3-release
upload_mycard:
extends: .deploy
variables:
appVersion: $CI_COMMIT_TAG
script: ./.ci/upload-packager.sh
only:
- tags
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment