"version": "0.1.4" #7
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 Windows | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| 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 | |
| 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 }} | |
| releaseBody: Windows builds for Kimi Code ${{ github.ref_name }}. | |
| releaseDraft: false | |
| prerelease: false |