Skip to content

Commit b1cb256

Browse files
authored
Release the macOS binaries also as .tar.gz (#1642)
* Tar the macOS binary * Upload the .tar.gz
1 parent d6bbf85 commit b1cb256

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/release-binary.yml

+12-1
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,9 @@ jobs:
121121
mkdir dmg
122122
mv lychee dmg/
123123
hdiutil create -fs HFS+ -srcfolder dmg -volname lychee lychee.dmg
124+
tar -czvf lychee.tar.gz -C dmg/ lychee
124125
125-
- name: Upload binary
126+
- name: Upload .dmg
126127
uses: actions/upload-release-asset@v1
127128
env:
128129
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -132,6 +133,16 @@ jobs:
132133
upload_url: ${{needs.prepare.outputs.upload_url}}
133134
asset_content_type: application/octet-stream
134135

136+
- name: Upload .tar.gz
137+
uses: actions/upload-release-asset@v1
138+
env:
139+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
140+
with:
141+
asset_name: lychee-arm64-macos.tar.gz
142+
asset_path: target/release/lychee.tar.gz
143+
upload_url: ${{needs.prepare.outputs.upload_url}}
144+
asset_content_type: application/octet-stream
145+
135146
windows:
136147
permissions:
137148
contents: write

0 commit comments

Comments
 (0)