diff --git a/.github/workflows/handbook.yml b/.github/workflows/handbook.yml index 697987120..a4d8358cc 100644 --- a/.github/workflows/handbook.yml +++ b/.github/workflows/handbook.yml @@ -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 diff --git a/src/handbook/data/assets b/src/handbook/data/assets index 4b823697f..1b9f8b2c0 160000 --- a/src/handbook/data/assets +++ b/src/handbook/data/assets @@ -1 +1 @@ -Subproject commit 4b823697f5a31312a03e20eb057a1a58e374df78 +Subproject commit 1b9f8b2c0d60a9c06a6eb6ad5fc21c55afd926fd