chore(release): 0.0.6 #45
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
VITE_INSTALL_URL: ${{ secrets.VITE_INSTALL_URL }} | |
VITE_PRIVATE_KEY: ${{ secrets.VITE_PRIVATE_KEY }} | |
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} | |
TAURI_KEY_PASSWORD: "" | |
with: | |
tagName: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version | |
releaseName: 'v__VERSION__' | |
releaseBody: 'Please refer to [CHANGELOG.md](https://github.com/picx-dev/picx-app/blob/main/CHANGELOG.md) for details.' | |
releaseDraft: true | |
prerelease: false | |
args: ${{ matrix.settings.args }} |