name: Release Editor App on: push: tags: - 'editor-v*' workflow_dispatch: inputs: version: description: 'Release version (e.g., 1.0.0)' required: true default: '1.0.0' jobs: build-tauri: strategy: fail-fast: false matrix: include: - platform: windows-latest target: x86_64-pc-windows-msvc arch: x64 - platform: macos-latest target: x86_64-apple-darwin arch: x64 - platform: macos-latest target: aarch64-apple-darwin arch: arm64 runs-on: ${{ matrix.platform }} steps: - name: Checkout code uses: actions/checkout@v4 - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: '20.x' cache: 'npm' - name: Install Rust stable uses: dtolnay/rust-toolchain@stable with: targets: ${{ matrix.target }} - name: Install dependencies (Ubuntu) if: matrix.platform == 'ubuntu-latest' run: | sudo apt-get update sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf - name: Install frontend dependencies run: npm ci - name: Build core package run: npm run build:core - name: Build editor-core package run: | cd packages/editor-core npm run build - name: Build Tauri app uses: tauri-apps/tauri-action@v0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: projectPath: packages/editor-app tagName: ${{ github.event.inputs.version || github.ref_name }} releaseName: 'ECS Editor ${{ github.event.inputs.version || github.ref_name }}' releaseBody: 'See the assets to download this version and install.' releaseDraft: false prerelease: false args: ${{ matrix.platform == 'macos-latest' && format('--target {0}', matrix.target) || '' }}