Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
Ygopro Cn Database Generator
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
神之吹息
Ygopro Cn Database Generator
Commits
355cc498
Commit
355cc498
authored
Oct 08, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
readme and ci
parent
f94edb4d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
1 deletion
+39
-1
.gitlab-ci.yml
.gitlab-ci.yml
+16
-0
README.md
README.md
+23
-1
No files found.
.gitlab-ci.yml
View file @
355cc498
...
...
@@ -33,3 +33,19 @@ upload_to_minio:
-
aws s3 --endpoint=https://minio.mycard.moe:9000 sync --delete output/ s3://mycard/cn-database
only
:
-
master
deploy_to_ygopro_server
:
stage
:
deploy
dependencies
:
[]
tags
:
-
linux
script
:
-
apt update && apt -y install openssh-client rsync coreutils
-
mkdir ~/.ssh
-
chmod 700 ~/.ssh
-
ssh-keyscan koishi.momobako.com >> ~/.ssh/known_hosts
-
echo $NANAHIRA_SSH_KEY | base64 --decode > ~/.ssh/id_rsa
-
chmod 600 ~/.ssh/*
-
scp -r output/cards.cdb nanahira@koishi.momobako.com:~/ygopro-cn/cards.cdb
only
:
-
master
README.md
View file @
355cc498
# ygopro-cn-database-generator
Generates CN env database from NW posts.
\ No newline at end of file
[
![pipeline status
](
https://code.mycard.moe/mycard/ygopro-cn-database-generator/badges/master/pipeline.svg
)
](https://code.mycard.moe/mycard/ygopro-cn-database-generator/-/commits/master)
Generates CN env database from NWBBS posts.
## How to use
1.
`npm ci && npm run build`
2.
`git clone https://code.mycard.moe/mycard/ygopro-database ygopro-database`
3.
`npm run start`
4.
Pick the output database from
`output/cards.cdb`
.
## Configurations
By default, configurations are not needed for default settings. Configurations are done by env vars as follows.
*
`POST_DEPTH`
How many pages it would read in the homepage of NWBBS.
*
`CN_DATABASE_PATH`
`JP_DATABASE_PATH`
Japanese and Chinese database path.
*
`OUTPUT_PATH`
Output path.
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