Skip to content

chore: bump version to 0.3.3 #19

chore: bump version to 0.3.3

chore: bump version to 0.3.3 #19

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
workflow_dispatch:
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: ${{ github.ref_type != 'tag' }}
jobs:
# Serializes the draft-release creation so the parallel build matrix below
# uploads to a single existing release instead of racing to create their
# own (which produced duplicate drafts in v0.1.2).
create-release:
if: github.ref_type == 'tag'
runs-on: ubuntu-latest
permissions:
contents: write
outputs:
release_id: ${{ steps.create.outputs.id }}
steps:
- id: create
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref_name }}
name: Secousse ${{ github.ref_name }}
body: See the assets to download and install this version.
draft: true
prerelease: false
build:
needs: create-release
if: ${{ !cancelled() && (github.ref_type != 'tag' || needs.create-release.result == 'success') }}
permissions:
contents: write
strategy:
fail-fast: false
matrix:
include:
- platform: ubuntu-22.04
args: ""
- platform: macos-latest
args: ${{ github.ref_type == 'tag' && '--target universal-apple-darwin' || '--target aarch64-apple-darwin' }}
- platform: windows-latest
args: ""
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v6
- name: Install dependencies (Ubuntu)
if: matrix.platform == 'ubuntu-22.04'
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
libwebkit2gtk-4.1-dev \
libappindicator3-dev \
librsvg2-dev \
patchelf \
libssl-dev \
build-essential \
curl \
wget \
file \
libxdo-dev
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.platform == 'macos-latest' && (github.ref_type == 'tag' && 'aarch64-apple-darwin,x86_64-apple-darwin' || 'aarch64-apple-darwin') || '' }}
- name: Rust cache
uses: Swatinem/rust-cache@v2
with:
workspaces: "./src-tauri -> target"
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: "1.3"
- name: Install frontend dependencies
run: bun install --frozen-lockfile
- name: Build & release
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
APPLE_SIGNING_IDENTITY: ${{ matrix.platform == 'macos-latest' && '-' || '' }}
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
with:
# When a release_id is passed, tauri-action skips its own find-or-
# create step and uploads only to this existing draft. Empty for
# non-tag dry-run builds (no release published).
releaseId: ${{ github.ref_type == 'tag' && needs.create-release.outputs.release_id || '' }}
args: ${{ matrix.args }}
- name: Upload artifacts (dry-run builds)
if: github.ref_type != 'tag'
uses: actions/upload-artifact@v7
with:
name: secousse-${{ matrix.platform }}
path: |
src-tauri/target/**/release/bundle/deb/*.deb
src-tauri/target/**/release/bundle/rpm/*.rpm
src-tauri/target/**/release/bundle/appimage/*.AppImage
src-tauri/target/**/release/bundle/dmg/*.dmg
src-tauri/target/**/release/bundle/macos/*.app.tar.gz
src-tauri/target/**/release/bundle/msi/*.msi
src-tauri/target/**/release/bundle/nsis/*.exe
if-no-files-found: ignore
retention-days: 7