Commit 105e3f84 authored by nanahira's avatar nanahira

Update .gitlab-ci.yml

parent 46125ed8
stages:
- check
- prepare
- deploy
......@@ -8,7 +9,7 @@ variables:
CURRENT_UPDATE_DATE: "2025.2.12"
redtext:
stage: prepare
stage: check
dependencies: []
tags:
- linux
......@@ -20,17 +21,23 @@ redtext:
- mv /ygopro-server/ygopro .
- mkdir dist
- cd ygopro
- mv ../expansions .
- ln -s ../expansions .
- echo "# Result of redtext test of commit $CI_COMMIT_SHA" | tee ../dist/redtext.txt
- echo "select id from datas where type != 0x10 and (type & 0x4000) = 0;" | sqlite3 $DATABASE_FILE | xargs -I {} ./ygopro {} 2>&1 | tee ../dist/redtext.txt
- echo "select id from datas where type != 0x11 and (type & 0x4000) = 0;" | sqlite3 $DATABASE_FILE | xargs -I {} ./ygopro {} 2>&1 | tee ../dist/redtext.txt
- cd ..
- echo "" >> expansions/lflist.conf
- echo "# Checks from redtexts" >> expansions/lflist.conf
- echo "" >> expansions/lflist.conf
- cat dist/redtext.txt | grep -oP 'c\d+\.lua' | grep -oP '\d+' | sort | uniq | sed 's/$/ 0/g' >> expansions/lflist.conf
artifacts:
paths:
- dist/
- expansions/lflist.conf
deploy_to_ygopro_server:
stage: prepare
dependencies: []
dependencies:
- redtext
tags:
- linux
script:
......@@ -46,7 +53,8 @@ deploy_to_ygopro_server:
pack:
stage: prepare
dependencies: []
dependencies:
- redtext
tags:
- linux
image: mono
......@@ -79,9 +87,7 @@ upload_to_minio:
- pack
tags:
- linux
image: python
script:
- pip install -U -i https://mirrors.aliyun.com/pypi/simple/ awscli
- cp dist/archive/ygopro-FiNALE-DIY-cards.zip dist/archive/ygopro-FiNALE-DIY-cards-$CURRENT_UPDATE_DATE.zip
- cp dist/archive/ygopro-FiNALE-DIY-update.zip dist/archive/ygopro-FiNALE-DIY-update-$CURRENT_UPDATE_DATE.zip
- aws s3 --endpoint=https://minio.moenext.com:9000 sync dist/ s3://mycard/ygopro-222DIY > /dev/null
......
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