Skip to content

Commit

Permalink
Merge pull request #3666 from mercedes-benz/feature-3664-release-buil…
Browse files Browse the repository at this point in the history
…d-fix-client-zip

fixed client release build #3664
  • Loading branch information
sven-dmlr authored Nov 28, 2024
2 parents 926295e + 7fcfd4a commit 9cfa313
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/release-client-server-pds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -499,8 +499,8 @@ jobs:
if: inputs.client-version != ''
run: |
cd sechub-cli/build/go
zip -r sechub-cli.zip platform
sha256sum sechub-cli.zip > sechub-cli.zip.sha256
zip -r sechub-cli-${{ inputs.client-version }}.zip platform
sha256sum sechub-cli-${{ inputs.client-version }}.zip > sechub-cli-${{ inputs.client-version }}.zip.sha256
- name: Create client Debian packages
if: inputs.client-version != ''
Expand All @@ -512,16 +512,13 @@ jobs:
shell: bash
run: |
assets=()
echo "# Add Client binaries sechub-cli-${{ inputs.client-version }}.zip + checksum"
assets+=("-a" "sechub-cli/build/go/sechub-cli.zip#sechub-cli-${{ inputs.client-version }}.zip")
assets+=("-a" "sechub-cli/build/go/sechub-cli.zip.sha256#sechub-cli-${{ inputs.client-version }}.zip.sha256")
echo "# Add Debian packages"
for asset in sechub-cli/build/deb-build/*.deb ; do
cp "sechub-doc/build/docs/asciidoc/sechub-client.pdf" sechub-client-${{ inputs.client-version }}.pdf
echo "# Adding Client binaries, docs and Debian packages"
for asset in sechub-cli/build/go/sechub-cli-${{ inputs.client-version }}.zip* sechub-client-${{ inputs.client-version }}.pdf sechub-cli/build/deb-build/*.deb ; do
filename=`basename "$asset"`
echo "# - $filename"
assets+=("-a" "${asset}#${filename}")
done
echo "# Add Client documentation sechub-client-${{ inputs.client-version }}.pdf"
assets+=("-a" "sechub-doc/build/docs/asciidoc/sechub-client.pdf#sechub-client-${{ inputs.client-version }}.pdf")
# Define release data
tag_name="v${{ inputs.client-version }}-client"
release_title="Client Version ${{ inputs.client-version }}"
Expand Down

0 comments on commit 9cfa313

Please sign in to comment.