From c66ffd945ea70b57e264764a68336561dca82877 Mon Sep 17 00:00:00 2001 From: Sebastian Becker Date: Fri, 4 Aug 2023 10:51:45 +0200 Subject: [PATCH] fix: fix release-action pattern resolve issue (#40) Signed-off-by: Sebastian Becker --- .github/workflows/java.publish.yaml | 9 +++++---- .release-please-manifest.json | 2 +- pom.xml | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/java.publish.yaml b/.github/workflows/java.publish.yaml index 97e8bde..3c181ce 100644 --- a/.github/workflows/java.publish.yaml +++ b/.github/workflows/java.publish.yaml @@ -15,10 +15,11 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v2 + - name: Create release artifacts folder + run: mkdir -p release-artifacts - name: Retrieve license obligation resources id: license-obligations run: | - mkdir -p license-obligations cd 3RD-PARTY-LICENSES FILES=$(find . -maxdepth 1 -type d -not -path .) if [ -n "$FILES" ] @@ -33,7 +34,7 @@ jobs: ARCHIVES=$(find . -regex "^./3rd-party-.*.zip$") if [ -n "$ARCHIVES" ] then - mv $(echo "${ARCHIVES}") ../license-obligations/ + mv $(echo "${ARCHIVES}") ../release-artifacts/ fi - name: Setup java uses: actions/setup-java@v3 @@ -54,12 +55,12 @@ jobs: - name: Build artifact run: | mvn package -Dskip.tests --batch-mode --no-transfer-progress && - cp target/cli-${GITHUB_REF#refs/*/cli-v}-jar-with-dependencies.jar cli-${GITHUB_REF#refs/*/cli-v}.jar + cp target/cli-${GITHUB_REF#refs/*/cli-v}-jar-with-dependencies.jar release-artifacts/cli-${GITHUB_REF#refs/*/cli-v}.jar - name: Update Release with license obligations resources uses: ncipollo/release-action@v1 with: allowUpdates: true - artifacts: license-obligations/*,cli-${GITHUB_REF#refs/*/cli-v}.jar + artifacts: release-artifacts/* artifactErrorsFailBuild: true makeLatest: true omitBodyDuringUpdate: true diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 218393f..2537c1f 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.4.1" + ".": "0.4.0" } diff --git a/pom.xml b/pom.xml index bbc6c09..1db1f23 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ 4.0.0 cli io.carbynestack - 0.4.1 + 0.4.0 Carbyne Stack Command Line Interface Carbyne Stack Command Line Interface for interacting with backend services.