Skip to content

v1.0.2

v1.0.2 #3

Workflow file for this run

name: 'publish'
on:
release:
types: [created]
jobs:
publish-tauri:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
include:
- platform: 'macos-latest' # for Arm based macs (M1 and above).
args: '--target aarch64-apple-darwin'
mobile: ''
- platform: 'macos-latest' # for Intel based macs.
args: '--target x86_64-apple-darwin'
mobile: ''
- platform: 'ubuntu-22.04'
args: ''
mobile: ''
- platform: 'windows-latest'
args: ''
mobile: ''
- platform: 'ubuntu-22.04'
args: ''
mobile: 'android'
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: setup node
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
# Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above.
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
- name: Install Android dependencies (if applicable)
uses: actions/setup-java@v5
if: matrix.mobile == 'android'
with:
distribution: 'zulu' # See 'Supported distributions' for available options
java-version: '21'
- name: 🟢 Install Node.js
uses: actions/setup-node@v6
with:
node-version: 22
package-manager-cache: pnpm
- name: 📦 Install package manager
run: npm i -g pnpm
- name: 🔌 Install Node.js dependencies
run: pnpm install --frozen-lockfile
- name: Write release-name
run: echo "${{ github.ref_name }}" > release-name
- name: setup Android signing
if: matrix.mobile == 'android'
run: |
cd src-tauri/gen/android
echo "keyAlias=${{ secrets.ANDROID_KEY_ALIAS }}" > keystore.properties
echo "password=${{ secrets.ANDROID_KEY_PASSWORD }}" >> keystore.properties
base64 -d <<< "${{ secrets.ANDROID_KEY_BASE64 }}" > $RUNNER_TEMP/keystore.jks
echo "storeFile=$RUNNER_TEMP/keystore.jks" >> keystore.properties
- name: 'Build binary'
uses: tauri-apps/tauri-action@44a5bf1eaeeebdabfd8951645f567c83b0ae02a3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: ${{ github.ref_name }}
releaseName: ${{ github.ref_name }}
releaseBody: 'See the assets below to download the installer for your platform.'
releaseDraft: false
prerelease: true
uploadPlainBinary: true
mobile: ${{ matrix.mobile }}
args: ${{ matrix.args }}