-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use TheDoctor0/zip-release to preserve permissions
- Loading branch information
1 parent
0880c07
commit 2ebb9d2
Showing
1 changed file
with
5 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -100,28 +100,20 @@ jobs: | |
mv target/bundled/* "$ARCHIVE_NAME/$ARCHIVE_NAME" | ||
- name: Add an OS-specific readme file with installation instructions | ||
run: cp ".github/workflows/readme-${{ runner.os }}.txt" "$ARCHIVE_NAME/$ARCHIVE_NAME/README.txt" | ||
- name: Make the OSX standalone app executable | ||
if: startsWith(matrix.os, 'macos') | ||
run: | | ||
chmod +x "$ARCHIVE_NAME/$ARCHIVE_NAME/lamb.app/Contents/MacOS/lamb" | ||
# - name: Make the windows standalone app executable | ||
# if: startsWith(matrix.os, 'windows') | ||
# run: | | ||
# git update-index --chmod=+x "$ARCHIVE_NAME/$ARCHIVE_NAME/lamb.exe" | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ env.ARCHIVE_NAME }} | ||
path: ${{ env.ARCHIVE_NAME }} | ||
|
||
- name: Zip files | ||
uses: vimtor/action-zip@v1.2 | ||
- name: Zip Release | ||
uses: thedoctor0/zip[email protected] | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: ${{ env.ARCHIVE_NAME }}/${{ env.ARCHIVE_NAME }} | ||
recursive: true | ||
dest: lamb-${{ github.ref_name }}-${{ matrix.name }}.zip | ||
type: 'zip' | ||
directory: ${{ env.ARCHIVE_NAME }}/${{ env.ARCHIVE_NAME }} | ||
filename: lamb-${{ github.ref_name }}-${{ matrix.name }}.zip | ||
|
||
- name: Release | ||
uses: softprops/action-gh-release@v2 | ||
|