From 49d3c6899158d547f471b2cb9dc2c22c9bc4378e Mon Sep 17 00:00:00 2001 From: Emre Sahin Date: Sun, 4 Aug 2024 19:16:20 +0300 Subject: [PATCH] just use a for loop --- .github/workflows/publish.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2fe81c08..1e9f5958 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -8,15 +8,18 @@ on: jobs: publish: # Don't publish alpha releases - # if: startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, '-') + if: startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, '-') runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Rust + uses: actions-rs/toolchain@v1 with: toolchain: stable - override: true - - uses: katyo/publish-crates@v2 - with: - registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} - ignore-unpublished-changes: true + + - name: Publish to crates.io + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + run: for p in xvc-logging xvc-test-helper xvc-walker xvc-ecs xvc-config xvc-core xvc-storage xvc-file xvc-pipelines xvc ; do cargo publish -p $p ; done