Skip to content

Commit 1f558c8

Browse files
committed
Fix artifact naming for macos binaries
1 parent 2b1dbe5 commit 1f558c8

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

.github/workflows/release.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ jobs:
9595
echo SHA256: $SHA256
9696
echo "SHA256=$SHA256" >> $GITHUB_ENV
9797
98-
- name: Upload MacOS artifacts
98+
- name: Upload MacOS Intel artifacts
9999
uses: actions/upload-artifact@v4
100100
with:
101-
name: macos
101+
name: macos-intel
102102
path: |
103103
${{ env.TARGET_DIR }}/srtool
104104
${{ env.TARGET_DIR }}/srtool_macos_intel.tar.gz
@@ -178,10 +178,10 @@ jobs:
178178
echo SHA256: $SHA256
179179
echo "SHA256=$SHA256" >> $GITHUB_ENV
180180
181-
- name: Upload MacOS artifacts
181+
- name: Upload MacOS ARM64 artifacts
182182
uses: actions/upload-artifact@v4
183183
with:
184-
name: macos
184+
name: macos-arm64
185185
path: |
186186
${{ env.TARGET_DIR }}/srtool
187187
${{ env.TARGET_DIR }}/srtool_macos_arm64.tar.gz
@@ -300,12 +300,22 @@ jobs:
300300
asset_name: "srtool_linux_amd64_${{ env.RELEASE_VERSION }}.deb"
301301
asset_content_type: application/vnd.debian.binary-package
302302

303-
- name: Upload MacOS archive
303+
- name: Upload MacOS Intel archive
304304
uses: actions/upload-release-asset@v1
305305
env:
306306
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
307307
with:
308308
upload_url: ${{ needs.create_draft.outputs.asset_upload_url }}
309-
asset_path: "macos/srtool_macos_intel.tar.gz"
309+
asset_path: "macos-intel/srtool_macos_intel.tar.gz"
310310
asset_name: "srtool_macos_intel_${{ env.RELEASE_VERSION }}.tar.gz"
311311
asset_content_type: application/gzip
312+
313+
- name: Upload MacOS ARM64 archive
314+
uses: actions/upload-release-asset@v1
315+
env:
316+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
317+
with:
318+
upload_url: ${{ needs.create_draft.outputs.asset_upload_url }}
319+
asset_path: "macos-arm64/srtool_macos_arm64.tar.gz"
320+
asset_name: "srtool_macos_arm64_${{ env.RELEASE_VERSION }}.tar.gz"
321+
asset_content_type: application/gzip

0 commit comments

Comments
 (0)