Skip to content

Align package version with tauri.conf (0.1.0) #1

Align package version with tauri.conf (0.1.0)

Align package version with tauri.conf (0.1.0) #1

Workflow file for this run

name: Release
# Build native installers for Windows, macOS (Intel + Apple Silicon), and Linux
# whenever a version tag is pushed, e.g.:
# git tag v0.1.0 && git push origin v0.1.0
on:
push:
tags:
- 'v*'
workflow_dispatch:
# tauri-action needs write access to create the GitHub Release.
permissions:
contents: write
jobs:
release:
strategy:
fail-fast: false
matrix:
include:
- platform: macos-latest # Apple Silicon
args: '--target aarch64-apple-darwin'
- platform: macos-latest # Intel
args: '--target x86_64-apple-darwin'
- platform: ubuntu-22.04
args: ''
- platform: windows-latest
args: ''
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Linux system dependencies
if: matrix.platform == 'ubuntu-22.04'
run: |
sudo apt-get update
sudo apt-get install -y \
libwebkit2gtk-4.1-dev \
libappindicator3-dev \
librsvg2-dev \
patchelf
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
- name: Cache Rust build
uses: swatinem/rust-cache@v2
with:
workspaces: './src-tauri -> target'
- name: Install frontend dependencies
run: npm ci
- name: Build and publish release
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: ${{ github.ref_name }}
releaseName: 'PhaserGame ${{ github.ref_name }}'
releaseBody: 'Download the installer for your platform from the assets below.'
releaseDraft: true
prerelease: false
args: ${{ matrix.args }}