mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-17 17:34:39 +01:00
Download data for the build, not for the lint
This commit is contained in:
53
.github/workflows/handbook.yml
vendored
53
.github/workflows/handbook.yml
vendored
@@ -42,32 +42,6 @@ jobs:
|
|||||||
working-directory: src/handbook
|
working-directory: src/handbook
|
||||||
run: npm run lint
|
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.name "github-actions"
|
||||||
- run: git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
- run: git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
- name: Commit changes
|
- name: Commit changes
|
||||||
@@ -98,6 +72,33 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
working-directory: src/handbook
|
working-directory: src/handbook
|
||||||
run: npm install --force
|
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
|
- name: Build handbook
|
||||||
working-directory: src/handbook
|
working-directory: src/handbook
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
|||||||
Submodule src/handbook/data/assets updated: 4b823697f5...1b9f8b2c0d
Reference in New Issue
Block a user