ci: test pr tag #6
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: Release | |
on: | |
push: | |
tags: | |
- 'v*' | |
workflow_dispatch: | |
jobs: | |
release: | |
permissions: | |
contents: write | |
strategy: | |
fail-fast: false | |
matrix: | |
settings: | |
- platform: macos-latest | |
name: MacOS Intel | |
target: x86_64-apple-darwin | |
bundles: app,dmg,updater | |
- platform: macos-latest | |
name: MacOS M1 | |
bundles: app,dmg,updater | |
target: aarch64-apple-darwin | |
- platform: windows-latest | |
name: Widows | |
bundles: msi,updater | |
target: x86_64-pc-windows-msvc | |
name: Release (${{ matrix.settings.name }}) | |
runs-on: ${{ matrix.settings.platform }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Rust setup | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: stable | |
targets: ${{ matrix.settings.target }} | |
- name: Rust cache | |
uses: swatinem/rust-cache@v2 | |
with: | |
workspaces: './src-tauri -> target' | |
- name: Sync node version and setup cache | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 'lts/*' | |
- name: Pnpm steup | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 7 | |
- name: Install frontend dependencies | |
run: pnpm install | |
- uses: robinraju/[email protected] | |
with: | |
repository: Mario34/tesla-camera | |
tag: v1.0.0-pre | |
fileName: ffmpeg.zip | |
extract: true | |
out-file-path: release-downloader | |
- name: Init binaries | |
run: | |
cp -f "$GITHUB_WORKSPACE/release-downloader/ffmpeg" src-tauri/binaries/ffmpeg-aarch64-apple-darwin & | |
cp -f "$GITHUB_WORKSPACE/release-downloader/ffmpeg" src-tauri/binaries/ffmpeg-x86_64-apple-darwin & | |
cp -f "$GITHUB_WORKSPACE/release-downloader/ffmpeg.exe" src-tauri/binaries/ffmpeg-x86_64-pc-windows-msvc.exe | |
shell: bash | |
- name: Build the app | |
uses: tauri-apps/tauri-action@v0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} | |
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} | |
with: | |
args: --target ${{ matrix.settings.target }} --bundles ${{ matrix.settings.bundles }} | |
tagName: ${{ github.ref_name }} | |
releaseName: 'TeslaCamera v__VERSION__' | |
releaseBody: 'See the assets to download and install this version.' | |
releaseDraft: true | |
prerelease: false |