debug github actions #7
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: | ||
branches: | ||
- release | ||
- feature/5-release-and-updates | ||
jobs: | ||
publish-tauri: | ||
permissions: | ||
contents: write | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [macos-latest] | ||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Rust setup | ||
uses: dtolnay/rust-toolchain@stable | ||
- name: Rust cache | ||
uses: swatinem/rust-cache@v2 | ||
with: | ||
workspaces: "./src-tauri -> target" | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8.13.1 | ||
- name: Sync node version and setup cache | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "lts/*" | ||
cache: "pnpm" | ||
- name: Install frontend dependencies | ||
run: pnpm install # Change this to npm, yarn or pnpm. | ||
- name: Add arm support | ||
run: rustup target add aarch64-apple-darwin && rustup target add x86_64-apple-darwin | ||
- name: Build the app | ||
uses: tauri-apps/tauri-action@v0 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }} | ||
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }} | ||
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }} | ||
APPLE_ID: ${{ secrets.APPLE_ID }} | ||
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }} | ||
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} | ||
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} | ||
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }} | ||
with: | ||
args: --target universal-apple-darwin --verbose | ||
tagName: app-v__VERSION__ | ||
releaseName: "v__VERSION__" | ||
releaseBody: "nothing yet" | ||
releaseDraft: false | ||
prerelease: false | ||
- name: Run tmate | ||
uses: mxschmitt/action-tmate@v2 | ||