Skip to content

Commit

Permalink
fix(ci): macos release
Browse files Browse the repository at this point in the history
code by @G0V1NDS
  • Loading branch information
rszyma committed Apr 18, 2024
1 parent 000b8aa commit 101896e
Showing 1 changed file with 45 additions and 16 deletions.
61 changes: 45 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,37 +5,66 @@ on:
- "v*.*.*"

jobs:
release:
release_linux_windows:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
go-version: "1.21"

- name: Install dependencies
run: |
sudo apt-get install libayatana-appindicator3-dev
- name: Install just
uses: taiki-e/install-action@just
- name: Build

- name: Build for Linux and Windows
run: |
version=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
just build_release_linux $version
just build_release_windows $version
just build_release_macos $version
- name: Release
uses: softprops/action-gh-release@v1
with:
draft: false
prerelease: false
files: |
- name: Upload Linux and Windows artifacts
uses: actions/upload-artifact@v2
with:
name: linux-windows-artifacts
path: |
./dist/kanata-tray.exe
./dist/kanata-tray
./dist/kanata-tray-macos
LICENSE
release_darwin:
needs: release_linux_windows
runs-on: macos-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.21"

- name: Install just
uses: taiki-e/install-action@just

- name: Download Linux and Windows artifacts
uses: actions/download-artifact@v2
with:
name: linux-windows-artifacts

- name: Build for darwin
run: |
version=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
just build_release_darwin $version
- name: Release
uses: softprops/action-gh-release@v1
with:
draft: false
prerelease: false
files: |
./dist/kanata-tray-darwin
LICENSE

0 comments on commit 101896e

Please sign in to comment.