From 5ba66f71c5563c56922999353d98cb62718bea42 Mon Sep 17 00:00:00 2001 From: Ricardo Delfin Date: Wed, 29 May 2024 02:19:41 +0100 Subject: [PATCH] Added automatic publishing to crates.io on publish (#8263) * Added automatic publishing to crates.io on publish * Fixed indentation * Update release.yml Change secret name. * Update release.yml remove extra space added in merge --------- Co-authored-by: Derek Bailey --- .github/workflows/release.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a6ff0268996..7c00e29ffa3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -109,7 +109,6 @@ jobs: working-directory: ./kotlin steps: - uses: actions/checkout@v3 - - name: Set up Maven Central Repository uses: actions/setup-java@v3 with: @@ -129,3 +128,19 @@ jobs: OSSRH_PASSWORD: ${{ secrets.OSSRH_TOKEN }} MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} + + publish-crates: + name: Publish crates.io + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./rust + steps: + - uses: actions/checkout@v3 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + - uses: katyo/publish-crates@v2 + with: + registry-token: ${{ secrets.CARGO_TOKEN }}