Commit 105e3f84 authored by nanahira's avatar nanahira

Update .gitlab-ci.yml

parent 46125ed8
stages: stages:
- check
- prepare - prepare
- deploy - deploy
...@@ -8,7 +9,7 @@ variables: ...@@ -8,7 +9,7 @@ variables:
CURRENT_UPDATE_DATE: "2025.2.12" CURRENT_UPDATE_DATE: "2025.2.12"
redtext: redtext:
stage: prepare stage: check
dependencies: [] dependencies: []
tags: tags:
- linux - linux
...@@ -20,17 +21,23 @@ redtext: ...@@ -20,17 +21,23 @@ redtext:
- mv /ygopro-server/ygopro . - mv /ygopro-server/ygopro .
- mkdir dist - mkdir dist
- cd ygopro - cd ygopro
- mv ../expansions . - ln -s ../expansions .
- echo "# Result of redtext test of commit $CI_COMMIT_SHA" | tee ../dist/redtext.txt - 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 .. - 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: artifacts:
paths: paths:
- dist/ - dist/
- expansions/lflist.conf
deploy_to_ygopro_server: deploy_to_ygopro_server:
stage: prepare stage: prepare
dependencies: [] dependencies:
- redtext
tags: tags:
- linux - linux
script: script:
...@@ -46,7 +53,8 @@ deploy_to_ygopro_server: ...@@ -46,7 +53,8 @@ deploy_to_ygopro_server:
pack: pack:
stage: prepare stage: prepare
dependencies: [] dependencies:
- redtext
tags: tags:
- linux - linux
image: mono image: mono
...@@ -79,9 +87,7 @@ upload_to_minio: ...@@ -79,9 +87,7 @@ upload_to_minio:
- pack - pack
tags: tags:
- linux - linux
image: python
script: 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-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 - 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 - 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