Skip to content

Commit

Permalink
fix: fix release-action pattern resolve issue (#40)
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Becker <[email protected]>
  • Loading branch information
sbckr committed Aug 4, 2023
1 parent f4674bc commit c66ffd9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/java.publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.4.1"
".": "0.4.0"
}
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>cli</artifactId>
<groupId>io.carbynestack</groupId>
<version>0.4.1</version>
<version>0.4.0</version>
<name>Carbyne Stack Command Line Interface</name>
<description>Carbyne Stack Command Line Interface for interacting with backend services.</description>
<licenses>
Expand Down

0 comments on commit c66ffd9

Please sign in to comment.