feat: add "Show logs" button (#35) #19
Workflow file for this run
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
name: release | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
jobs: | |
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" | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install libayatana-appindicator3-dev | |
- name: Install just | |
uses: taiki-e/install-action@just | |
- 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 | |
- name: Upload Linux and Windows artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: linux-windows-artifacts | |
path: | | |
./dist/kanata-tray.exe | |
./dist/kanata-tray-linux | |
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@v4 | |
with: | |
name: linux-windows-artifacts | |
path: dist | |
- name: Build for darwin | |
run: | | |
version=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,') | |
just build_release_macos $version | |
- name: Add Checksums | |
run: | | |
cd ./dist | |
for file in kanata-tray*; do shasum -a 256 "$file"; done > sha256sums | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
draft: false | |
prerelease: false | |
files: | | |
./dist/kanata-tray.exe | |
./dist/kanata-tray-linux | |
./dist/kanata-tray-macos | |
LICENSE | |
./dist/sha256sums |