bump desktop version to 0.2.5 #5
Workflow file for this run
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: Release Desktop | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| permissions: | |
| contents: write | |
| jobs: | |
| release-windows: | |
| name: Build and publish Windows | |
| runs-on: windows-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v5 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v6 | |
| with: | |
| version: 10 | |
| - name: Install Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| cache-dependency-path: apps/kimi-code/pnpm-lock.yaml | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Install frontend dependencies | |
| working-directory: apps/kimi-code | |
| run: pnpm install --frozen-lockfile | |
| - name: Verify tag matches app version | |
| shell: pwsh | |
| run: | | |
| $config = Get-Content apps/kimi-code/src-tauri/tauri.conf.json | ConvertFrom-Json | |
| $expectedTag = "v$($config.version)" | |
| if ("${{ github.ref_name }}" -ne $expectedTag) { | |
| throw "Tag ${{ github.ref_name }} does not match app version $expectedTag" | |
| } | |
| - name: Build and publish Kimi Code for Windows | |
| uses: tauri-apps/tauri-action@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} | |
| with: | |
| projectPath: apps/kimi-code | |
| tagName: ${{ github.ref_name }} | |
| releaseName: Kimi Code ${{ github.ref_name }} | |
| releaseDraft: false | |
| prerelease: false | |
| releaseAssetNamePattern: '[name]_[version]_windows_[arch][setup][ext]' | |
| - name: Update release download links | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: node .github/scripts/update-release-downloads.mjs | |
| release-linux: | |
| name: Build and publish Linux AppImage and Debian package | |
| needs: release-windows | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v5 | |
| - name: Install Linux dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf xdg-utils | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v6 | |
| with: | |
| version: 10 | |
| - name: Install Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| cache-dependency-path: apps/kimi-code/pnpm-lock.yaml | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Install frontend dependencies | |
| working-directory: apps/kimi-code | |
| run: pnpm install --frozen-lockfile | |
| - name: Verify tag matches app version | |
| shell: bash | |
| run: | | |
| app_version="$(jq -r .version apps/kimi-code/src-tauri/tauri.conf.json)" | |
| expected_tag="v${app_version}" | |
| if [[ "${GITHUB_REF_NAME}" != "${expected_tag}" ]]; then | |
| echo "Tag ${GITHUB_REF_NAME} does not match app version ${expected_tag}" >&2 | |
| exit 1 | |
| fi | |
| - name: Build and publish Kimi Code for Linux | |
| uses: tauri-apps/tauri-action@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} | |
| with: | |
| projectPath: apps/kimi-code | |
| tagName: ${{ github.ref_name }} | |
| releaseName: Kimi Code ${{ github.ref_name }} | |
| releaseDraft: false | |
| prerelease: false | |
| releaseAssetNamePattern: '[name]_[version]_linux_[arch][ext]' | |
| args: --bundles appimage,deb | |
| - name: Update release download links | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: node .github/scripts/update-release-downloads.mjs | |
| release-macos: | |
| name: Build and publish macOS | |
| needs: release-linux | |
| runs-on: macos-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v5 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v6 | |
| with: | |
| version: 10 | |
| - name: Install Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| cache-dependency-path: apps/kimi-code/pnpm-lock.yaml | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: aarch64-apple-darwin,x86_64-apple-darwin | |
| - name: Install frontend dependencies | |
| working-directory: apps/kimi-code | |
| run: pnpm install --frozen-lockfile | |
| - name: Verify tag matches app version | |
| shell: bash | |
| run: | | |
| app_version="$(node -p "require('./apps/kimi-code/src-tauri/tauri.conf.json').version")" | |
| expected_tag="v${app_version}" | |
| if [[ "${GITHUB_REF_NAME}" != "${expected_tag}" ]]; then | |
| echo "Tag ${GITHUB_REF_NAME} does not match app version ${expected_tag}" >&2 | |
| exit 1 | |
| fi | |
| - name: Build and publish Kimi Code for Apple Silicon | |
| uses: tauri-apps/tauri-action@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} | |
| with: | |
| projectPath: apps/kimi-code | |
| tagName: ${{ github.ref_name }} | |
| releaseName: Kimi Code ${{ github.ref_name }} | |
| releaseDraft: false | |
| prerelease: false | |
| releaseAssetNamePattern: '[name]_[version]_macos_[arch][ext]' | |
| args: --target aarch64-apple-darwin | |
| - name: Update release download links | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: node .github/scripts/update-release-downloads.mjs | |
| - name: Build and publish Kimi Code for Intel Mac | |
| uses: tauri-apps/tauri-action@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} | |
| with: | |
| projectPath: apps/kimi-code | |
| tagName: ${{ github.ref_name }} | |
| releaseName: Kimi Code ${{ github.ref_name }} | |
| releaseDraft: false | |
| prerelease: false | |
| releaseAssetNamePattern: '[name]_[version]_macos_[arch][ext]' | |
| args: --target x86_64-apple-darwin | |
| - name: Update release download links | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: node .github/scripts/update-release-downloads.mjs |