From a9b5d1284d4b0f765e560143f4f617edc6d7a9ce Mon Sep 17 00:00:00 2001 From: Ricardo Delfin Date: Sat, 16 Mar 2024 19:01:25 +0000 Subject: [PATCH 1/4] Added automatic publishing to crates.io on publish --- .github/workflows/release.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1554d824f7e..7ca56290932 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -101,5 +101,18 @@ 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_REGISTRY_TOKEN }} From ae9ba8f7a53cb7ec578b3ffc3de276d5d376f431 Mon Sep 17 00:00:00 2001 From: Ricardo Delfin Date: Sat, 16 Mar 2024 19:38:24 +0000 Subject: [PATCH 2/4] Fixed indentation --- .github/workflows/release.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7ca56290932..11f77395636 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -107,12 +107,12 @@ jobs: 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_REGISTRY_TOKEN }} + 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_REGISTRY_TOKEN }} From 9f0f529995037c36dad5ce154566ba438dce266b Mon Sep 17 00:00:00 2001 From: Derek Bailey Date: Tue, 28 May 2024 18:12:55 -0700 Subject: [PATCH 3/4] Update release.yml Change secret name. --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 11f77395636..8a49726cd8c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -115,4 +115,4 @@ jobs: override: true - uses: katyo/publish-crates@v2 with: - registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} + registry-token: ${{ secrets.CARGO_TOKEN }} From ae3db929b1129f6dd3f088be3a68eb5ded16970f Mon Sep 17 00:00:00 2001 From: Derek Bailey Date: Tue, 28 May 2024 18:14:55 -0700 Subject: [PATCH 4/4] Update release.yml remove extra space added in merge --- .github/workflows/release.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c48650dab96..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: