fix the issue that on of mac build will be overwritten by another

This commit is contained in:
geekgeekrun
2024-04-14 17:12:48 +08:00
parent 42daa623ed
commit c1732f31fd
+9 -7
View File
@@ -49,7 +49,7 @@ jobs:
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: binary-geekgeekrun-ui-windows-${{ github.sha }} name: binary-geekgeekrun-ui-windows-x64-${{ github.sha }}
path: | path: |
${{ github.workspace }}/packages/ui/dist/*.exe ${{ github.workspace }}/packages/ui/dist/*.exe
overwrite: true overwrite: true
@@ -57,12 +57,14 @@ jobs:
build_on_macos: build_on_macos:
strategy: strategy:
matrix: matrix:
os: platform:
- macos-13 # for x64 build - os: macos-13 # for x64 build
- macos-14 # for arm64 build arch: x64
- os: macos-14 # for arm64 build
arch: arm64
env: env:
PUPPETEER_SKIP_DOWNLOAD: 'true' PUPPETEER_SKIP_DOWNLOAD: 'true'
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.platform.os }}
permissions: write-all permissions: write-all
# Steps represent a sequence of tasks that will be executed as part of the job # Steps represent a sequence of tasks that will be executed as part of the job
@@ -85,7 +87,7 @@ jobs:
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: binary-geekgeekrun-ui-macos-${{ github.sha }} name: binary-geekgeekrun-ui-macos-${{ matrix.platform.arch }}-${{ github.sha }}
path: | path: |
${{ github.workspace }}/packages/ui/dist/*.dmg ${{ github.workspace }}/packages/ui/dist/*.dmg
overwrite: true overwrite: true
@@ -116,7 +118,7 @@ jobs:
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: binary-geekgeekrun-ui-linux-${{ github.sha }} name: binary-geekgeekrun-ui-linux-x64-${{ github.sha }}
path: | path: |
${{ github.workspace }}/packages/ui/dist/*.deb ${{ github.workspace }}/packages/ui/dist/*.deb
${{ github.workspace }}/packages/ui/dist/*.rpm ${{ github.workspace }}/packages/ui/dist/*.rpm