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