Auto Release #2
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: Auto Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*.*.*' # stable releases (e.g., v0.1.3) | |
| - 'v*.*.*-*' # pre-releases (e.g., v0.1.3-beta.1) | |
| permissions: | |
| contents: write | |
| jobs: | |
| create-release: | |
| name: Create GitHub Release | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Extract version info | |
| id: version | |
| run: | | |
| TAG=${GITHUB_REF#refs/tags/} | |
| echo "tag=$TAG" >> $GITHUB_OUTPUT | |
| # Check if this is a pre-release | |
| if [[ "$TAG" =~ -beta\. ]] || [[ "$TAG" =~ -alpha\. ]] || [[ "$TAG" =~ -rc\. ]]; then | |
| echo "prerelease=true" >> $GITHUB_OUTPUT | |
| else | |
| echo "prerelease=false" >> $GITHUB_OUTPUT | |
| fi | |
| - name: Create Release | |
| uses: actions/create-release@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| tag_name: ${{ steps.version.outputs.tag }} | |
| release_name: Release ${{ steps.version.outputs.tag }} | |
| body: | | |
| ## Changes in ${{ steps.version.outputs.tag }} | |
| ### Installation | |
| **From TestPyPI (Beta):** | |
| ```bash | |
| uvx --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ code-trajectory-mcp | |
| ``` | |
| **From GitHub:** | |
| ```bash | |
| uvx --from git+https://github.com/SynTaek/code-trajectory-mcp.git@${{ steps.version.outputs.tag }} code-trajectory-mcp | |
| ``` | |
| See the [README](https://github.com/SynTaek/code-trajectory-mcp#readme) for full documentation. | |
| draft: false | |
| prerelease: ${{ steps.version.outputs.prerelease }} |