fix(ci): fix sed delimiter crash in GitHub release body generation #5
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: Tauri Desktop Build | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - 'ui/src-tauri/**' | |
| - 'ui/src/**' | |
| - 'ui/package.json' | |
| - 'ui/package-lock.json' | |
| - '.github/workflows/tauri-build.yml' | |
| pull_request: | |
| branches: [ main ] | |
| paths: | |
| - 'ui/src-tauri/**' | |
| - 'ui/src/**' | |
| - 'ui/package.json' | |
| - '.github/workflows/tauri-build.yml' | |
| workflow_dispatch: | |
| jobs: | |
| build-tauri: | |
| # CI verification: Linux-only (only runner available on Gitea) | |
| # Cross-platform builds (Windows/macOS) run in release.yml on tag push | |
| runs-on: ubuntu-latest | |
| container: | |
| image: node:20-bookworm | |
| steps: | |
| - name: Checkout source | |
| shell: bash | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| run: | | |
| set -euo pipefail | |
| REPO_URL="${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git" | |
| AUTH_REPO_URL="${REPO_URL/https:\/\//https:\/\/x-access-token:${GITHUB_TOKEN}@}" | |
| if [ ! -d .git ]; then | |
| git init . | |
| fi | |
| git remote remove origin >/dev/null 2>&1 || true | |
| git remote add origin "${AUTH_REPO_URL}" | |
| git fetch --depth=1 origin "${GITHUB_SHA}" | |
| git checkout --force FETCH_HEAD | |
| - name: Install Rust stable | |
| run: | | |
| curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable --target x86_64-unknown-linux-gnu | |
| echo "$HOME/.cargo/bin" >> $GITHUB_PATH | |
| - name: Install Linux dependencies | |
| run: | | |
| apt-get update | |
| apt-get install -y --no-install-recommends \ | |
| libwebkit2gtk-4.1-dev libgtk-3-dev \ | |
| libsoup-3.0-dev libjavascriptcoregtk-4.1-dev librsvg2-dev patchelf \ | |
| libayatana-appindicator3-dev xdg-utils \ | |
| build-essential pkg-config libssl-dev | |
| - name: Install frontend dependencies | |
| working-directory: ui | |
| run: npm ci | |
| - name: Build Tauri app | |
| env: | |
| CARGO_BUILD_JOBS: "8" | |
| run: | | |
| export PATH="$HOME/.cargo/bin:$PATH" | |
| cd ui | |
| npx tauri build | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v3 | |
| with: | |
| name: tauri-linux | |
| path: | | |
| ui/src-tauri/target/release/bundle/**/*.deb | |
| ui/src-tauri/target/release/bundle/**/*.AppImage | |
| if-no-files-found: warn |