Commit 3f59b9e9 authored by nanahira's avatar nanahira

add test-release.json generation

parent 0d1a8973
...@@ -33,6 +33,7 @@ pack: ...@@ -33,6 +33,7 @@ pack:
tags: tags:
- linux - linux
script: script:
- pip install -U sqlite-utils
- mkdir -p data archive - mkdir -p data archive
- mv *.cdb data/ - mv *.cdb data/
- mv pics data/ - mv pics data/
...@@ -44,6 +45,7 @@ pack: ...@@ -44,6 +45,7 @@ pack:
- cd .. - cd ..
- mv archive/ygopro-super-pre.zip archive/ygopro-super-pre.ypk - mv archive/ygopro-super-pre.zip archive/ygopro-super-pre.ypk
- cp archive/ygopro-super-pre.ypk archive/ygopro-super-pre-$CI_COMMIT_REF_NAME.ypk - cp archive/ygopro-super-pre.ypk archive/ygopro-super-pre-$CI_COMMIT_REF_NAME.ypk
- sqlite-utils test-release.cdb 'select datas.*,texts.* from datas,texts where datas.id=texts.id and (datas.type & 0x4000) = 0 and (datas.alias = 0 or datas.alias - datas.id > 10 or datas.alias - datas.id < -10)' > data/test-release.json
artifacts: artifacts:
paths: paths:
- data - data
...@@ -67,7 +69,6 @@ server: ...@@ -67,7 +69,6 @@ server:
paths: paths:
- server-dist - server-dist
.minio: .minio:
stage: deploy stage: deploy
dependencies: dependencies:
...@@ -89,7 +90,7 @@ upload_data: ...@@ -89,7 +90,7 @@ upload_data:
variables: variables:
uploadDir: data uploadDir: data
only: only:
- tags - master
deploy: deploy:
stage: deploy stage: deploy
......
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