Download data required for building artifacts

This commit is contained in:
KingRainbow44 2023-05-14 00:43:06 -04:00
parent 3cc034ef12
commit 418422577a
No known key found for this signature in database
GPG Key ID: FC2CB64B00D257BE
2 changed files with 18 additions and 0 deletions

View File

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

View File

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