diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index db36044..ecf466b 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -22,3 +22,8 @@ jobs: run: cargo build --verbose - name: Run tests run: cargo test --verbose + - name: Publish to Cargo Registry + if: github.ref == 'refs/heads/master' + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + run: cargo publish