Commit 5792eb3c authored by nanahira's avatar nanahira

add mycard deploy

parent 3558c27c
......@@ -83,5 +83,29 @@ upload_to_minio:
only:
- master
deploy_408:
deploy_server_env408:
extends: .deploy_server
.deploy_mycard:
stage: deploy
dependencies:
- env408
tags:
- linux
variables:
username: $MYCARD_USERNAME
password: $MYCARD_PASSWORD
appVersion: $CI_COMMIT_REF_NAME
APP_ID: ygopro-408
USE_PACK: env408-zh-CN
script:
- apt update; apt -y install tar zstd curl jq
- git clone https://code.mycard.moe/mycard/mycard-package-script
- cd mycard-package-script
- ./index.sh makeBuild "$APP_ID" ../output/$USE_PACK || true
- cd ..
only:
- master
deploy_mycard_env408:
extends: .deploy_mycard
......@@ -16,6 +16,8 @@ npm ci
npm run build
npm run "$NPM_SCRIPT"
cp -rf ./extras/$FILE_SYMBOL/injects/* "$OUTPUT_PATH/" || true
cd "$OUTPUT_PATH"
tar zcvf "../$FILE_SYMBOL-data-$LOCALE.tar.gz" deck expansions
cd ..
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