Skip to content

Commit

Permalink
ci: 更新install.yml中使用的Action (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
overflow65537 authored Oct 1, 2024
1 parent a8acc91 commit 6344650
Showing 1 changed file with 16 additions and 20 deletions.
36 changes: 16 additions & 20 deletions .github/workflows/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
meta:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- id: set_tag
Expand Down Expand Up @@ -58,17 +58,16 @@ jobs:
fail-fast: false

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

- name: Download MaaFramework
uses: robinraju/release-downloader@v1.8
uses: robinraju/release-downloader@v1
with:
repository: MaaXYZ/MaaFramework
fileName: "MAA-win-${{ matrix.arch }}*"
latest: true
preRelease: true
out-file-path: "deps"
extract: true

Expand All @@ -77,7 +76,7 @@ jobs:
run: |
python ./install.py ${{ needs.meta.outputs.tag }}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: M9A-win-${{ matrix.arch }}
path: "install"
Expand All @@ -91,17 +90,16 @@ jobs:
fail-fast: false

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

- name: Download MaaFramework
uses: robinraju/release-downloader@v1.8
uses: robinraju/release-downloader@v1
with:
repository: MaaXYZ/MaaFramework
fileName: "MAA-linux-${{ matrix.arch }}*"
latest: true
preRelease: true
out-file-path: "deps"
extract: true

Expand All @@ -110,7 +108,7 @@ jobs:
run: |
python ./install.py ${{ needs.meta.outputs.tag }}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: M9A-linux-${{ matrix.arch }}
path: "install"
Expand All @@ -124,17 +122,16 @@ jobs:
fail-fast: false

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

- name: Download MaaFramework
uses: robinraju/release-downloader@v1.8
uses: robinraju/release-downloader@v1
with:
repository: MaaXYZ/MaaFramework
fileName: "MAA-macos-${{ matrix.arch }}*"
latest: true
preRelease: true
out-file-path: "deps"
extract: true

Expand All @@ -143,7 +140,7 @@ jobs:
run: |
python ./install.py ${{ needs.meta.outputs.tag }}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: M9A-macos-${{ matrix.arch }}
path: "install"
Expand All @@ -157,17 +154,16 @@ jobs:
fail-fast: false

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

- name: Download MaaFramework
uses: robinraju/release-downloader@v1.8
uses: robinraju/release-downloader@v1
with:
repository: MaaXYZ/MaaFramework
fileName: "MAA-android-${{ matrix.arch }}*"
latest: true
preRelease: true
out-file-path: "deps"
extract: true

Expand All @@ -176,17 +172,17 @@ jobs:
run: |
python ./install.py ${{ needs.meta.outputs.tag }}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: M9A-android-${{ matrix.arch }}
path: "install"

release:
if: ${{ needs.meta.outputs.is_release == 'true' }}
needs: [meta, windows, ubuntu, macos]
needs: [meta, windows, ubuntu, macos, android]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
path: assets

Expand All @@ -195,7 +191,7 @@ jobs:
for f in *; do
(cd $f && zip -r ../$f-${{ needs.meta.outputs.tag }}.zip .)
done
- uses: softprops/action-gh-release@v1
- uses: softprops/action-gh-release@v2
with:
files: assets/*
tag_name: ${{ needs.meta.outputs.tag }}

0 comments on commit 6344650

Please sign in to comment.