diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e4c0850..7648a88 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -68,3 +68,18 @@ jobs: - uses: pypa/gh-action-pypi-publish@release/v1 with: packages-dir: dist/ + + crate: + if: startsWith(github.ref, 'refs/tags/v') + needs: test + runs-on: ubuntu-latest + permissions: + id-token: write + steps: + - uses: actions/checkout@v7 + - uses: dtolnay/rust-toolchain@stable + - uses: rust-lang/crates-io-auth-action@v1 + id: auth + - run: cargo publish + env: + CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }} diff --git a/Cargo.toml b/Cargo.toml index bc03184..7295d42 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,7 +27,7 @@ codegen-units = 16 [dependencies] base64 = "0.23.0" -fast5ever = { git = "https://github.com/AnswerDotAI/fast5ever" } +fast5ever = { git = "https://github.com/AnswerDotAI/fast5ever", version = "0.1.5" } html-escape = ">=0.2" pyo3 = { version = ">=0.28", optional = true } unicode-properties = "0.1"