Skip to content

Commit

Permalink
feat: add build.json
Browse files Browse the repository at this point in the history
  • Loading branch information
MuZhou233 committed Feb 26, 2024
1 parent 6975f00 commit 5048860
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- uses: actions/checkout@v4

- name: Build
run: make build-pages
run: make build-pages BUILD_NUMBER=$GITHUB_RUN_NUMBER

- name: Setup Pages
uses: actions/configure-pages@v4
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
BUILD_NUMBER?=0

.PHONY: init
# init
init:
pip install -r requirements.txt

build-pages:
echo "{ \"buildNumber\": \"${BUILD_NUMBER}\" }" > docs/build.json
cp README.md docs/README.md
cd scripts/game_id_merger && python main.py

Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ responsibility for using this dataset.

由于存在各种特例,数据集中三种平台的 ID 及游戏名称均有可能重复出现,这不是错误,在要求唯一性时请自行处理。

如果你需要自动化更新数据集,可以利用版本文件检测更新:[https://datasets.tuihub.org/build.json](https://datasets.tuihub.org/build.json)

---

*Currently, only the complete dataset is provided for download. If you need to query online, please submit an issue*
Expand All @@ -53,4 +55,6 @@ Each entry in the dataset contains the following fields:
- names: string array, contains multiple versions of game names in Chinese, English and Japanese, at least one

Due to various special cases, the IDs and game names of the three platforms may appear repeatedly in the dataset. This
is not an error. Please handle it yourself when uniqueness is required.
is not an error. Please handle it yourself when uniqueness is required.

If you need to automatically update the dataset, you can use the version file to detect updates: [https://datasets.tuihub.org/build.json](https://datasets.tuihub.org/build.json)

0 comments on commit 5048860

Please sign in to comment.