diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d92f0b5..f4d9ef1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -101,3 +101,18 @@ jobs: artifacts/**/* env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + publish-crates: + name: Publish to crates.io + needs: release + runs-on: ubuntu-latest + # Only publish stable releases (not alpha/beta/rc) + if: ${{ !contains(github.ref, '-rc') && !contains(github.ref, '-beta') && !contains(github.ref, '-alpha') }} + steps: + - uses: actions/checkout@v4 + + - name: Install Rust + uses: dtolnay/rust-toolchain@stable + + - name: Publish to crates.io + run: cargo publish --token ${{ secrets.CRATES_IO_TOKEN }} diff --git a/Cargo.toml b/Cargo.toml index 0e7cc5f..2d3ce87 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,6 +4,11 @@ version = "0.1.0" edition = "2021" description = "Semantic code analyzer with TOON output" license = "MIT" +repository = "https://github.com/Semfora-AI/semfora-engine" +homepage = "https://github.com/Semfora-AI/semfora-engine" +readme = "README.md" +keywords = ["semantic-analysis", "code-analysis", "mcp", "ai", "tree-sitter"] +categories = ["development-tools", "command-line-utilities"] [[bin]] name = "semfora-engine"