From cb23fd61552f895a6e8edfc1dff3873a8111cb42 Mon Sep 17 00:00:00 2001 From: LIAUD Corentin Date: Tue, 5 Nov 2024 08:01:05 +0100 Subject: [PATCH] ci: add publish on crates.io --- .github/workflows/rust-release.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust-release.yml b/.github/workflows/rust-release.yml index f375b90..af396b6 100644 --- a/.github/workflows/rust-release.yml +++ b/.github/workflows/rust-release.yml @@ -34,10 +34,17 @@ jobs: - name: "Build RPM package" run: cargo generate-rpm -p adb_cli - - name: "Publish deb package" + - name: "Publish GitHub artefacts" uses: softprops/action-gh-release@v2 with: files: | target/debian/*.deb target/generate-rpm/*.rpm - target/release/adb_cli \ No newline at end of file + target/release/adb_cli + + - name: "Publish crates" + run: | + cargo publish -p adb_client --token ${CRATES_IO_TOKEN} + cargo publish -p adb_cli --token ${CRATES_IO_TOKEN} + env: + CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }} \ No newline at end of file