Skip to content

Commit

Permalink
fix: gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
valtlfelipe committed May 17, 2024
1 parent aa6a095 commit 67ed938
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,32 +43,28 @@ jobs:
# Building step
- name: Build macOS App
if: runner.os == 'macOS'
run: wails build --platform ${{matrix.build.platform}} -o SecretEditor.app
run: wails build --platform ${{matrix.build.platform}} -o SecretEditor_${{matrix.build.platform}}.app
shell: bash

- name: Build .app zip file
if: runner.os == 'macOS'
shell: bash
run: ditto -c -k ./build/bin/SecretEditor_${{matrix.build.platform}}.app ./build/bin/SecretEditor_${{matrix.build.platform}}.app.zip

- name: Build Linux App
if: runner.os == 'Linux'
run: wails build --platform ${{matrix.build.platform}} -o SecretEditor
run: wails build --platform ${{matrix.build.platform}} -o SecretEditor_${{matrix.build.platform}}
shell: bash

- name: Build Windows App
if: runner.os == 'Windows'
run: wails build --platform ${{matrix.build.platform}} -o SecretEditor.exe
shell: bash

- name: Add macOS perms
if: runner.os == 'macOS'
run: chmod +x build/bin/*/Contents/MacOS/*
shell: bash

- name: Add Linux perms
if: runner.os == 'Linux'
run: chmod +x build/bin/*
run: wails build --platform ${{matrix.build.platform}} -o SecretEditor_${{matrix.build.platform}}.exe
shell: bash

- name: Release
working-directory: ./build
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
./build/bin/*
*/bin/*

0 comments on commit 67ed938

Please sign in to comment.