From f0cbda99ecef8ec0eff117bfa956bc2841b21eae 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 | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 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..3fede9966202 --- /dev/null +++ b/.github/workflows/crate-io.yml @@ -0,0 +1,32 @@ +--- +on: + release: + types: [created] + tags: + - v-* + pull_requests: + 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' + dry-run: ${{ github.event_name != 'release' }} + registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} + - uses: katyo/publish-crates@v2 + with: + path: './plugins' + dry-run: ${{ github.event_name != 'release' }} + registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} + - uses: katyo/publish-crates@v2 + with: + path: './cln-grpc' + dry-run: ${{ github.event_name != 'release' }} + registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} +