Skip to content

0.0.3

0.0.3 #39

Workflow file for this run

name: 'publish'
on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
publish-tauri:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
settings:
- platform: 'macos-latest'
args: '--target x86_64-apple-darwin'
- platform: 'macos-latest'
args: '--target aarch64-apple-darwin'
- platform: 'ubuntu-latest'
args: ''
- platform: 'windows-latest'
args: ''
runs-on: ${{ matrix.settings.platform }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: install webkit2gtk (ubuntu only)
if: matrix.settings.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y webkit2gtk-4.0
- name: Rust setup
uses: dtolnay/rust-toolchain@stable
with:
targets: aarch64-apple-darwin
- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: './src-tauri -> target'
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false
- name: Sync node version and setup cache
uses: actions/setup-node@v3
with:
node-version: '20.10.0'
node-version-file: '.node-version'
cache: 'pnpm' # Set this to npm, yarn or pnpm.
- name: Install frontend dependencies
# If you don't have `beforeBuildCommand` configured you may want to build your frontend here too.
run: pnpm install # Change this to npm, yarn or pnpm.
- name: Build the app
id: build_app
uses: tauri-apps/tauri-action@v0.4.5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ""
VITE_STATE: ${{ secrets.VITE_STATE }}
VITE_SCOPE: ${{ secrets.VITE_SCOPE }}
VITE_CLIENT_ID: ${{ secrets.VITE_CLIENT_ID }}
VITE_REDIRECT_URI: ${{ secrets.VITE_REDIRECT_URI }}
VITE_CLIENT_SECRET: ${{ secrets.VITE_CLIENT_SECRET }}
VITE_INSTALL_URL: ${{ secrets.VITE_INSTALL_URL }}
with:
tagName: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
releaseName: 'v__VERSION__'
releaseBody: 'See the assets to download this version and install.'
releaseDraft: true
prerelease: false
args: ${{ matrix.settings.args }}