Created
June 21, 2025 16:57
-
-
Save Revxrsal/4a4066cd5f516215dca03d46542a0184 to your computer and use it in GitHub Desktop.
This file contains hidden or 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: Build app | |
on: | |
push: | |
branches: | |
- release | |
workflow_dispatch: { } | |
# This is the example from the readme. | |
# On each push to the `release` branch it will create or update a GitHub release, build your app, and upload the artifacts to the release. | |
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" | |
- platform: "macos-latest" # for Intel based macs. | |
args: "--target x86_64-apple-darwin" | |
- platform: "windows-latest" | |
args: "" | |
- platform: 'ubuntu-22.04' | |
args: "" | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
with: | |
package_json_file: 'package.json' | |
- 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: Rust cache | |
uses: swatinem/rust-cache@v2 | |
with: | |
workspaces: './src-tauri -> target' | |
- name: install frontend dependencies | |
run: pnpm install | |
- uses: tauri-apps/tauri-action@v0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.APP_TOKEN }} | |
with: | |
tagName: app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version. | |
releaseName: "Keyboard-Operated YouTube v__VERSION__" | |
releaseBody: "See the assets to download this version and install." | |
releaseDraft: false | |
prerelease: false | |
args: ${{ matrix.args }} | |
owner: KeyboardOperatedYouTube | |
repo: Assets | |
releaseCommitish: main |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment