Commit 355cc498 authored by nanahira's avatar nanahira

readme and ci

parent f94edb4d
Pipeline #894 canceled with stages
in 35 seconds
...@@ -33,3 +33,19 @@ upload_to_minio: ...@@ -33,3 +33,19 @@ upload_to_minio:
- aws s3 --endpoint=https://minio.mycard.moe:9000 sync --delete output/ s3://mycard/cn-database - aws s3 --endpoint=https://minio.mycard.moe:9000 sync --delete output/ s3://mycard/cn-database
only: only:
- master - 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
# ygopro-cn-database-generator # ygopro-cn-database-generator
Generates CN env database from NW posts. [![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)
\ No newline at end of file
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.
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