From 643fd84eaadd2252c938624c48bd6813ad2900f8 Mon Sep 17 00:00:00 2001 From: Antonio Gisondi Date: Wed, 11 Oct 2023 10:34:11 +0200 Subject: [PATCH 1/2] Rust: update action crate publish Add astarte-message-hub-proto package for publication. Remove `--dry-run` to allow the publication. Signed-off-by: Antonio Gisondi --- .github/workflows/rust-publish.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust-publish.yaml b/.github/workflows/rust-publish.yaml index e9e04e3..922037c 100644 --- a/.github/workflows/rust-publish.yaml +++ b/.github/workflows/rust-publish.yaml @@ -33,7 +33,7 @@ jobs: with: toolchain: stable - name: Publish astarte-message-hub-proto - run: cargo publish --token ${CRATES_TOKEN} --dry-run + run: cargo publish --token ${CRATES_TOKEN} -p astarte-message-hub-proto env: CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }} - working-directory: ./rust/astarte-message-hub-proto + working-directory: ./rust From b024d3fb0d06aa59dc2d0563aa57ff8ea6e59c70 Mon Sep 17 00:00:00 2001 From: Antonio Gisondi Date: Wed, 11 Oct 2023 10:44:00 +0200 Subject: [PATCH 2/2] Rust: use CARGO_REGISTRY_TOKEN env Signed-off-by: Antonio Gisondi --- .github/workflows/rust-publish.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust-publish.yaml b/.github/workflows/rust-publish.yaml index 922037c..6fef491 100644 --- a/.github/workflows/rust-publish.yaml +++ b/.github/workflows/rust-publish.yaml @@ -33,7 +33,7 @@ jobs: with: toolchain: stable - name: Publish astarte-message-hub-proto - run: cargo publish --token ${CRATES_TOKEN} -p astarte-message-hub-proto + run: cargo publish -p astarte-message-hub-proto env: - CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }} + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN } working-directory: ./rust