feat:update readme for mcp (#5) #14
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: | |
| branches: [main] | |
| permissions: | |
| contents: write | |
| issues: write | |
| pull-requests: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: denoland/setup-deno@v2 | |
| with: | |
| deno-version: v2.x | |
| - name: Semantic Release | |
| id: semantic | |
| uses: cycjimmy/semantic-release-action@v6 | |
| with: | |
| extra_plugins: | | |
| @semantic-release/exec | |
| @semantic-release/git | |
| @semantic-release/github | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build binaries | |
| if: steps.semantic.outputs.new_release_published == 'true' | |
| run: | | |
| tag="v${{ steps.semantic.outputs.new_release_version }}" | |
| git checkout "$tag" | |
| # Linux x86_64 | |
| deno compile --allow-read --allow-write --allow-env --allow-ffi --output ocv --target x86_64-unknown-linux-gnu main.ts | |
| tar czf ocv-x86_64-linux.tar.gz ocv && rm ocv | |
| # Linux ARM64 | |
| deno compile --allow-read --allow-write --allow-env --allow-ffi --output ocv --target aarch64-unknown-linux-gnu main.ts | |
| tar czf ocv-aarch64-linux.tar.gz ocv && rm ocv | |
| # macOS ARM64 | |
| deno compile --allow-read --allow-write --allow-env --allow-ffi --output ocv --target aarch64-apple-darwin main.ts | |
| tar czf ocv-aarch64-macos.tar.gz ocv && rm ocv | |
| # macOS x86_64 | |
| deno compile --allow-read --allow-write --allow-env --allow-ffi --output ocv --target x86_64-apple-darwin main.ts | |
| tar czf ocv-x86_64-macos.tar.gz ocv && rm ocv | |
| - name: Upload binaries to release | |
| if: steps.semantic.outputs.new_release_published == 'true' | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| tag="v${{ steps.semantic.outputs.new_release_version }}" | |
| gh release upload "$tag" ocv-*.tar.gz |