56 lines
1.7 KiB
YAML
56 lines
1.7 KiB
YAML
# Релиз: сборка .app / DMG, подпись (при наличии ключа), публикация в GitHub Releases и latest.json
|
|
# Настройка: в Secrets репозитория добавить TAURI_SIGNING_PRIVATE_KEY (приватный ключ от tauri signer generate)
|
|
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
release:
|
|
name: Build & Release
|
|
runs-on: macos-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
cache: 'npm'
|
|
cache-dependency-path: desktop/ui/package-lock.json
|
|
|
|
- name: Install Rust toolchain
|
|
uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
toolchain: stable
|
|
|
|
- name: Install UI deps
|
|
run: cd desktop/ui && npm ci
|
|
|
|
- name: Debug tauri config
|
|
run: |
|
|
echo "PWD=$(pwd)"
|
|
ls -la
|
|
echo "---- desktop/src-tauri/tauri.conf.json ----"
|
|
sed -n '1,200p' desktop/src-tauri/tauri.conf.json
|
|
echo "beforeBuildCommand:"
|
|
grep -n "beforeBuildCommand" desktop/src-tauri/tauri.conf.json || true
|
|
echo "Find other tauri configs:"
|
|
find . -maxdepth 4 \( -name "tauri.conf.json" -o -name "tauri.config.*" \) || true
|
|
|
|
- name: Build Tauri (release)
|
|
uses: tauri-apps/tauri-action@v0
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
|
|
PAPAYU_PROJECT_ROOT: ${{ github.workspace }}
|
|
with:
|
|
projectPath: desktop/src-tauri
|
|
includeUpdaterJson: true
|
|
tagName: ${{ github.ref_name }}
|