Skip to content

removing workflow_dispatch #11

removing workflow_dispatch

removing workflow_dispatch #11

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
jobs:
release:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
include:
# --- macOS Builds ---
- platform: 'macos-latest'
args: '--target aarch64-apple-darwin'
target: 'aarch64-apple-darwin'
arch_name: 'macos-arm'
- platform: 'macos-latest'
args: '--target x86_64-apple-darwin'
target: 'x86_64-apple-darwin'
arch_name: 'macos-intel'
# --- Linux Build ---
- platform: 'ubuntu-22.04'
args: ''
target: ''
arch_name: 'linux-x64'
- platform: 'ubuntu-22.04-arm'
args: '--target aarch64-unknown-linux-gnu'
target: 'aarch64-unknown-linux-gnu'
arch_name: 'linux-arm64'
# --- Windows Builds ---
- platform: 'windows-latest'
args: ''
target: ''
arch_name: 'windows-x64'
- platform: 'windows-latest'
args: '--target aarch64-pc-windows-msvc'
target: 'aarch64-pc-windows-msvc'
arch_name: 'windows-arm'
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'npm'
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- name: Install dependencies (Ubuntu only)
if: startsWith(matrix.platform, 'ubuntu')
run: |
sudo apt-get update
sudo apt-get install -y \
libgtk-3-dev \
libwebkit2gtk-4.1-dev \
libnm-dev \
libsoup-3.0-dev \
libjavascriptcoregtk-4.1-dev \
librsvg2-dev \
libayatana-appindicator3-dev \
xdg-utils
- name: Install Frontend Dependencies
run: npm install
- name: Build and Release
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: ${{ github.ref_name }}
releaseName: 'Celerix ${{ github.ref_name }}'
releaseDraft: true
args: ${{ matrix.args }}
assetNamePattern: '[name]_${{ github.ref_name }}_${{ matrix.arch_name }}[ext]'