Download data for the build, not for the lint

This commit is contained in:
KingRainbow44 2023-05-15 03:57:05 -04:00
parent 4647d528e2
commit 2fb03b4186
No known key found for this signature in database
GPG Key ID: FC2CB64B00D257BE
2 changed files with 28 additions and 27 deletions

View File

@ -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