From 57ead06e3cfca765e46cf2df451dab2ea0d98ba5 Mon Sep 17 00:00:00 2001 From: Vincenzo Palazzo Date: Wed, 27 Sep 2023 15:23:34 +0200 Subject: [PATCH] ci: autopublish rust crates on tag event Signed-off-by: Vincenzo Palazzo --- .github/workflows/crate-io.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/crate-io.yml diff --git a/.github/workflows/crate-io.yml b/.github/workflows/crate-io.yml new file mode 100644 index 000000000000..884b38095b94 --- /dev/null +++ b/.github/workflows/crate-io.yml @@ -0,0 +1,28 @@ +--- +on: + push: + workflow_run: + branches: [master] + +steps: + - uses: actions/checkout@v3 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + - uses: katyo/publish-crates@v2 + with: + path: './cln-rpc' + registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} + ignore-unpublished-changes: true + - uses: katyo/publish-crates@v2 + with: + path: './plugins' + registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} + ignore-unpublished-changes: true + - uses: katyo/publish-crates@v2 + with: + path: './cln-grpc' + registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} + ignore-unpublished-changes: true +