mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-22 20:03:21 +00:00
Download data for the build, not for the lint
This commit is contained in:
parent
4647d528e2
commit
2fb03b4186
53
.github/workflows/handbook.yml
vendored
53
.github/workflows/handbook.yml
vendored
@ -42,32 +42,6 @@ jobs:
|
||||
working-directory: src/handbook
|
||||
run: npm run lint
|
||||
|
||||
- name: Download Avatar Data
|
||||
uses: suisei-cn/actions-download-file@v1.4.0
|
||||
with:
|
||||
url: https://api.grasscutter.io/static/avatars.csv
|
||||
target: src/handbook/data/
|
||||
- name: Download Command Data
|
||||
uses: suisei-cn/actions-download-file@v1.4.0
|
||||
with:
|
||||
url: https://api.grasscutter.io/static/commands.json
|
||||
target: src/handbook/data/
|
||||
- name: Download Entity Data
|
||||
uses: suisei-cn/actions-download-file@v1.4.0
|
||||
with:
|
||||
url: https://api.grasscutter.io/static/entities.csv
|
||||
target: src/handbook/data/
|
||||
- name: Download Item Data
|
||||
uses: suisei-cn/actions-download-file@v1.4.0
|
||||
with:
|
||||
url: https://api.grasscutter.io/static/items.csv
|
||||
target: src/handbook/data/
|
||||
- name: Download Scene Data
|
||||
uses: suisei-cn/actions-download-file@v1.4.0
|
||||
with:
|
||||
url: https://api.grasscutter.io/static/scenes.csv
|
||||
target: src/handbook/data/
|
||||
|
||||
- run: git config --global user.name "github-actions"
|
||||
- run: git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
- name: Commit changes
|
||||
@ -98,6 +72,33 @@ jobs:
|
||||
- name: Install dependencies
|
||||
working-directory: src/handbook
|
||||
run: npm install --force
|
||||
|
||||
- name: Download Avatar Data
|
||||
uses: suisei-cn/actions-download-file@v1.4.0
|
||||
with:
|
||||
url: https://api.grasscutter.io/static/avatars.csv
|
||||
target: src/handbook/data/
|
||||
- name: Download Command Data
|
||||
uses: suisei-cn/actions-download-file@v1.4.0
|
||||
with:
|
||||
url: https://api.grasscutter.io/static/commands.json
|
||||
target: src/handbook/data/
|
||||
- name: Download Entity Data
|
||||
uses: suisei-cn/actions-download-file@v1.4.0
|
||||
with:
|
||||
url: https://api.grasscutter.io/static/entities.csv
|
||||
target: src/handbook/data/
|
||||
- name: Download Item Data
|
||||
uses: suisei-cn/actions-download-file@v1.4.0
|
||||
with:
|
||||
url: https://api.grasscutter.io/static/items.csv
|
||||
target: src/handbook/data/
|
||||
- name: Download Scene Data
|
||||
uses: suisei-cn/actions-download-file@v1.4.0
|
||||
with:
|
||||
url: https://api.grasscutter.io/static/scenes.csv
|
||||
target: src/handbook/data/
|
||||
|
||||
- name: Build handbook
|
||||
working-directory: src/handbook
|
||||
run: npm run build
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 4b823697f5a31312a03e20eb057a1a58e374df78
|
||||
Subproject commit 1b9f8b2c0d60a9c06a6eb6ad5fc21c55afd926fd
|
Loading…
Reference in New Issue
Block a user