Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
P
pre-release-database-cdb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ruby
pre-release-database-cdb
Commits
39e87d1c
Commit
39e87d1c
authored
Nov 08, 2023
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update .gitlab-ci.yml
parent
79916644
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
.gitlab-ci.yml
.gitlab-ci.yml
+20
-3
No files found.
.gitlab-ci.yml
View file @
39e87d1c
stages
:
stages
:
-
json
-
pack
-
pack
-
deploy
-
deploy
...
@@ -26,21 +27,37 @@ variables:
...
@@ -26,21 +27,37 @@ variables:
# - cd ..
# - cd ..
# - exit $(cat dist/redtext.txt | wc -l)
# - exit $(cat dist/redtext.txt | wc -l)
json
:
stage
:
json
dependencies
:
[]
tags
:
-
linux
image
:
git-registry.mycard.moe/mycard/ygopro-cdb-descgen:master-x86
script
:
-
currentPath=$PWD
-
cd /usr/src/app
-
wget -O strings.conf https://code.mycard.moe/mycard/ygopro-database/-/raw/master/locales/zh-CN/cards.cdb
-
node dist $currentPath/test-release.cdb ./strings.conf $currentPath/test-strings.conf > $currentPath/test-release.json
-
cd $currentPath
artifacts
:
paths
:
-
test-release.json
pack
:
pack
:
stage
:
pack
stage
:
pack
dependencies
:
[]
dependencies
:
-
json
tags
:
tags
:
-
linux
-
linux
script
:
script
:
-
pip install -U sqlite-utils
-
mkdir -p data archive
-
mkdir -p data archive
-
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
-
mv *.cdb data/
-
mv *.cdb data/
-
mv pics data/
-
mv pics data/
-
mv script data/
-
mv script data/
-
mv *.conf data/
-
mv *.conf data/
-
mv *.ini data/
-
mv *.ini data/
-
mv test-release.json data/
-
cd data
-
cd data
-
7z a -mx9 ../archive/ygopro-super-pre.zip pics script *.cdb *.conf *.ini
-
7z a -mx9 ../archive/ygopro-super-pre.zip pics script *.cdb *.conf *.ini
-
cd ..
-
cd ..
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment