Skip to content

Commit

Permalink
fixed client release build #3664
Browse files Browse the repository at this point in the history
  • Loading branch information
sven-dmlr committed Nov 27, 2024
1 parent 926295e commit f0962e0
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 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,15 @@ 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
echo "# Adding Client binaries and Debian packages"
for asset in sechub-cli/build/go/sechub-cli-${{ inputs.client-version }}.zip* 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")
echo "# Adding Client documentation sechub-client-${{ inputs.client-version }}.pdf"
cp "sechub-doc/build/docs/asciidoc/sechub-client.pdf" sechub-client-${{ inputs.client-version }}.pdf
assets+=("-a" "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 f0962e0

Please sign in to comment.