Skip to content

Commit

Permalink
Update install.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO authored Jan 23, 2025
1 parent 335b3a8 commit 9f02cd7
Showing 1 changed file with 46 additions and 1 deletion.
47 changes: 46 additions & 1 deletion .github/workflows/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,46 @@ jobs:
name: MCCA-macos-${{ matrix.arch }}
path: "install"

mirrorchyan_res:
needs: meta
runs-on: macos-latest
strategy:
fail-fast: false

steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Download MaaFramework
uses: robinraju/release-downloader@v1
with:
repository: MaaXYZ/MaaFramework
fileName: "MAA-macos-aarch64*"
latest: true
out-file-path: "deps"
extract: true

- name: Install
shell: bash
run: |
python ./install.py ${{ needs.meta.outputs.tag }}
- name: MirrorChyan Package
id: zip
run: |
rm -rf install/resource/base/model/ocr
mkdir MirrorChyan
zip -r MirrorChyan/${{ github.event.repository.name }}.zip install/resource install/interface.json
- uses: actions/upload-artifact@v4
with:
name: MirrorChyanRes
path: MirrorChyan

release:
if: ${{ needs.meta.outputs.is_release == 'true' }}
needs: [meta, windows, ubuntu, macos,gui]
needs: [meta, windows, ubuntu, macos, gui, mirrorchyan_res]]
runs-on: ubuntu-latest
permissions:
contents: write
Expand All @@ -186,6 +223,14 @@ jobs:
with:
path: assets

- name: Upload to MirrorChyan
run: |
curl --location --request POST 'https://mirrorc.top/api/resources/${{ github.event.repository.name }}/versions' \
--header 'Authorization:${{ secrets.MirrorChyanUploadToken }}' \
--form 'name="${{ needs.meta.outputs.tag }}"' \
--form 'file=@"assets/MirrorChyanRes/${{ github.event.repository.name }}.zip"'
rm -rf assets/MirrorChyanRes
- run: |
cd assets
for f in *; do
Expand Down

0 comments on commit 9f02cd7

Please sign in to comment.