From dde27b4fdef253a7b5f76cadf9b9209c3bb42f66 Mon Sep 17 00:00:00 2001 From: Alessandro Candido Date: Tue, 21 May 2024 15:05:00 +0200 Subject: [PATCH] ci: Rearrange crates deployment with python script --- .github/workflows/crates.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/crates.yml b/.github/workflows/crates.yml index fbad509cd..81a295dc1 100644 --- a/.github/workflows/crates.yml +++ b/.github/workflows/crates.yml @@ -14,17 +14,19 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Setup Nushell - uses: hustcer/setup-nu@v3.10 + - uses: actions/setup-python@v5 + - name: Install and configure Poetry + uses: snok/install-poetry@v1 with: - version: 0.93.0 + virtualenvs-create: false + - name: Install task runner + run: pip install poethepoet - name: Bump versions - shell: nu {0} run: | - do { cd crates; nu bump-versions.nu } + poetry install --only version + poe bump-version - name: Publish crates - shell: nu {0} run: | - open crates/release.json | each {|p| cargo publish -p $p --allow-dirty } + jq '.[]' release.json | xargs -I _ cargo publish -p _ --allow-dirty env: CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}