docs(README): 更新项目定位描述,移除已废弃的 Markdown Prompt 打包相关表述,强调上下文编译与 AI 工具集成 #12
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 | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - goos: linux | |
| goarch: amd64 | |
| asset_name: kontext_linux_amd64 | |
| - goos: linux | |
| goarch: arm64 | |
| asset_name: kontext_linux_arm64 | |
| - goos: darwin | |
| goarch: amd64 | |
| asset_name: kontext_darwin_amd64 | |
| - goos: darwin | |
| goarch: arm64 | |
| asset_name: kontext_darwin_arm64 | |
| - goos: windows | |
| goarch: amd64 | |
| asset_name: kontext_windows_amd64.exe | |
| - goos: windows | |
| goarch: arm64 | |
| asset_name: kontext_windows_arm64.exe | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - name: Run tests | |
| run: go test ./... | |
| - name: Build binary | |
| shell: bash | |
| run: | | |
| VERSION=${GITHUB_REF_NAME#v} | |
| mkdir -p dist | |
| GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} CGO_ENABLED=0 \ | |
| go build -ldflags "-X github.com/w1ndys/kontext/cmd.Version=${VERSION}" \ | |
| -o dist/${{ matrix.asset_name }} . | |
| - name: Upload build artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ matrix.asset_name }} | |
| path: dist/${{ matrix.asset_name }} | |
| if-no-files-found: error | |
| release: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Generate changelog | |
| uses: orhun/git-cliff-action@v4 | |
| id: changelog | |
| with: | |
| config: cliff.toml | |
| args: --latest --strip header | |
| - name: Download build artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| path: dist | |
| merge-multiple: true | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| body: ${{ steps.changelog.outputs.content }} | |
| files: dist/* |