Skip to content

Commit

Permalink
use TheDoctor0/zip-release to preserve permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
magnetophon committed May 7, 2024
1 parent 0880c07 commit b52802b
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,32 +100,24 @@ 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
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
*.zip
${{ env.ARCHIVE_NAME }}/${{ env.ARCHIVE_NAME }}*.zip

0 comments on commit b52802b

Please sign in to comment.