Skip to content

chore: replace app icon with hero Logo across all platforms #133

chore: replace app icon with hero Logo across all platforms

chore: replace app icon with hero Logo across all platforms #133

Workflow file for this run

name: Build & Release
on:
push:
tags:
- 'v*'
workflow_dispatch:
inputs:
tag:
description: 'Release tag (e.g. v4.0.0)'
required: true
default: 'v4.0.0'
jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci
- name: Type check frontend
run: npx tsc --noEmit
- name: Run tests
run: npm test
build-linux:
needs: verify
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- uses: dtolnay/rust-toolchain@stable
- name: Install Linux build dependencies
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
- run: npm ci
- name: Build Tauri app
run: npx tauri build
- uses: actions/upload-artifact@v4
with:
name: linux-packages
path: |
src-tauri/target/release/bundle/appimage/*.AppImage
src-tauri/target/release/bundle/deb/*.deb
build-windows:
needs: verify
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- uses: dtolnay/rust-toolchain@stable
- run: npm ci
- name: Build Tauri app
run: npx tauri build
- uses: actions/upload-artifact@v4
with:
name: windows-installer
path: src-tauri/target/release/bundle/nsis/*.exe
publish-release:
needs: [build-linux, build-windows]
if: needs.build-linux.result == 'success' && needs.build-windows.result == 'success'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/download-artifact@v4
with:
path: release-artifacts
merge-multiple: true
- name: Resolve tag name
id: tag
run: |
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
echo "name=${{ github.event.inputs.tag }}" >> $GITHUB_OUTPUT
else
echo "name=${{ github.ref_name }}" >> $GITHUB_OUTPUT
fi
- name: Create GitHub Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
tag="${{ steps.tag.outputs.name }}"
mapfile -t files < <(find release-artifacts -type f \( -name "*.AppImage" -o -name "*.deb" -o -name "*.exe" \) | sort)
if [ "${#files[@]}" -eq 0 ]; then
echo "No release artifacts found."
exit 1
fi
if gh release view "$tag" --repo "$GITHUB_REPOSITORY" &>/dev/null; then
echo "Release $tag already exists — uploading artifacts"
gh release upload "$tag" "${files[@]}" \
--repo "$GITHUB_REPOSITORY" \
--clobber
else
echo "Creating release $tag"
gh release create "$tag" "${files[@]}" \
--repo "$GITHUB_REPOSITORY" \
--title "$tag" \
--latest
fi