mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-25 23:07:50 +00:00
Download data required for building artifacts
This commit is contained in:
parent
3cc034ef12
commit
418422577a
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -37,6 +37,8 @@ jobs:
|
||||
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle', 'gradle.properties', '**/*.accesswidener') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-gradle-
|
||||
- name: Download Handbook
|
||||
run: wget https://api.grasscutter.io/static/handbook.html -O src/main/resources/handbook.html
|
||||
- name: Run Gradle
|
||||
run: ./gradlew && ./gradlew jar
|
||||
- name: Upload build
|
||||
|
16
.github/workflows/handbook.yml
vendored
16
.github/workflows/handbook.yml
vendored
@ -42,6 +42,22 @@ jobs:
|
||||
working-directory: src/handbook
|
||||
run: npm run lint
|
||||
|
||||
- name: Download Avatar Data
|
||||
working-directory: src/handbook
|
||||
run: wget https://api.grasscutter.io/static/avatars.csv -O data/avatars.csv
|
||||
- name: Download Command Data
|
||||
working-directory: src/handbook
|
||||
run: wget https://api.grasscutter.io/static/commands.json -O data/commands.json
|
||||
- name: Download Entity Data
|
||||
working-directory: src/handbook
|
||||
run: wget https://api.grasscutter.io/static/entities.csv -O data/entities.csv
|
||||
- name: Download Item Data
|
||||
working-directory: src/handbook
|
||||
run: wget https://api.grasscutter.io/static/items.csv -O data/items.csv
|
||||
- name: Download Scene Data
|
||||
working-directory: src/handbook
|
||||
run: wget https://api.grasscutter.io/static/scenes.csv -O data/scenes.csv
|
||||
|
||||
- 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
|
||||
|
Loading…
Reference in New Issue
Block a user