Skip to content

Commit c5ff082

Browse files
authored
fix: fix mirrorc metadata
1 parent 43e49ef commit c5ff082

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

.github/workflows/mirrorchyan_uploading.yml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,26 @@ jobs:
99
mirrorchyan_7z:
1010
runs-on: macos-latest
1111
steps:
12-
- uses: MirrorChyan/uploading-action@v1
12+
- name: 📥 Download release
13+
uses: robinraju/release-downloader@v1.8
1314
with:
14-
filetype: latest-release
15-
filename: "BetterGI_*.7z"
16-
p7zip: true
17-
mirrorchyan_rid: BGI
15+
latest: true
16+
fileName: "*"
1817

19-
github_token: ${{ secrets.GITHUB_TOKEN }}
20-
owner: babalae
21-
repo: better-genshin-impact
18+
- name: Extract 7z
19+
shell: bash
20+
run: |
21+
7z x BetterGI_v*.7z -oun7z
22+
mv ./BetterGI.Metadata.json ./un7z/BetterGI/.metadata.json
23+
24+
- name: Upload Zip
25+
uses: MirrorChyan/uploading-action@v1
26+
with:
27+
filetype: local
28+
mirrorchyan_rid: BGI
29+
working-directory: downloads/BetterGI_7z/un7z/
30+
pick_files: '["BetterGI"]'
31+
version_name: ${{ github.event.release.tag_name }}
2232
upload_token: ${{ secrets.MirrorChyanUploadToken }}
2333

2434
mirrorchyan_exe:

0 commit comments

Comments
 (0)