Bump version to 0.2.2 #70
Workflow file for this run
This file contains hidden or 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: Build | |
| on: | |
| push: | |
| branches: ["**"] | |
| tags: ["v*"] | |
| jobs: | |
| build-linux: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Lint | |
| run: bun run lint:check | |
| - name: Typecheck | |
| run: bun run typecheck | |
| - name: Build frontend | |
| run: bun run build | |
| - name: Package .deb | |
| run: bunx electron-builder --linux deb --publish never | |
| - name: Upload .deb artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: linux-deb | |
| path: release/*.deb | |
| retention-days: 30 | |
| build-mac: | |
| runs-on: macos-latest | |
| strategy: | |
| matrix: | |
| arch: [x64, arm64] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Lint | |
| run: bun run lint:check | |
| - name: Typecheck | |
| run: bun run typecheck | |
| - name: Build frontend | |
| run: bun run build | |
| - name: Package .dmg (${{ matrix.arch }}) | |
| run: bunx electron-builder --mac dmg --${{ matrix.arch }} --publish never | |
| env: | |
| CSC_IDENTITY_AUTO_DISCOVERY: "false" | |
| - name: Upload .dmg artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: mac-dmg-${{ matrix.arch }} | |
| path: release/*.dmg | |
| retention-days: 30 | |
| build-windows: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Lint | |
| run: bun run lint:check | |
| - name: Typecheck | |
| run: bun run typecheck | |
| - name: Build frontend | |
| run: bun run build | |
| - name: Package .exe (NSIS) | |
| run: bunx electron-builder --win nsis --publish never | |
| - name: Upload .exe artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: windows-nsis | |
| path: release/*.exe | |
| retention-days: 30 | |
| release: | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| needs: [build-linux, build-mac, build-windows] | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Download all artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| path: artifacts | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| generate_release_notes: true | |
| files: | | |
| artifacts/linux-deb/*.deb | |
| artifacts/mac-dmg-x64/*.dmg | |
| artifacts/mac-dmg-arm64/*.dmg | |
| artifacts/windows-nsis/*.exe |