From 350d8659b8560e96c616b503c21ec36db87361fe Mon Sep 17 00:00:00 2001 From: Darach Ennis Date: Wed, 23 Oct 2024 14:02:12 +0200 Subject: [PATCH] Attempt to resolve release github actions issues affecting RC publication Signed-off-by: Darach Ennis --- .github/workflows/publish-crates.yaml | 34 +++++++++++++++++++++++---- .github/workflows/release.yaml | 4 ++-- 2 files changed, 32 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish-crates.yaml b/.github/workflows/publish-crates.yaml index dafd647fc8..bc128f5b5e 100644 --- a/.github/workflows/publish-crates.yaml +++ b/.github/workflows/publish-crates.yaml @@ -7,7 +7,7 @@ jobs: name: Publish tremor common runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - run: cargo install cargo-release @@ -16,12 +16,38 @@ jobs: CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} run: cargo release publish -p tremor-common -x + publish-tremor-config: + name: Publish tremor config + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - run: cargo install cargo-release + - name: Publish to crates.io + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + run: cargo release publish -p tremor-config -x + + publish-tremor-codec: + name: Publish tremor codec + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - run: cargo install cargo-release + - name: Publish to crates.io + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + run: cargo release publish -p tremor-codec -x + publish-tremor-value: needs: [publish-tremor-common] name: Publish tremor value runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - run: cargo install cargo-release @@ -34,7 +60,7 @@ jobs: name: Publish tremor influx runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - run: cargo install cargo-release @@ -48,7 +74,7 @@ jobs: name: Publish tremor script runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - run: cargo install cargo-release diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b95dc04287..8fd43b9f47 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -16,12 +16,12 @@ jobs: - name: List files run: ls packaging/out/* - name: Archive production artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: packages path: | packaging/out/* - - uses: AButler/upload-release-assets@v2.0 + - uses: AButler/upload-release-assets@v3.0 with: files: "packaging/out/*" repo-token: ${{ secrets.GITHUB_TOKEN }}