From 0fc50e74c861b58da5b84f3db472faf19f9aab95 Mon Sep 17 00:00:00 2001 From: Denys Vitali Date: Thu, 11 Jan 2024 09:19:31 +0100 Subject: [PATCH] ci: add cargo publish --- .github/workflows/rust.yml | 5 +++++ 1 file changed, 5 insertions(+) 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