Skip to content

Commit

Permalink
Fix: flatten assets
Browse files Browse the repository at this point in the history
The signing script does not iterate through files within the linux dir
and to maje it more obivious within a release the binaries should be
renamed to contain the target machine.
  • Loading branch information
nichtsfrei committed Mar 13, 2024
1 parent 6a404e9 commit f831850
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ jobs:
--current-version ${{ env.LATEST_VERSION }} \
--next-version ${{ env.NEW_VERSION }} \
--config changelog.toml \
--project $PROJECT \
--repository $REPOSITORY \
--versioning-scheme semver \
-o /tmp/changelog.md || true
Expand All @@ -125,10 +124,15 @@ jobs:
echo "${{ secrets.token }}" | gh auth login --with-token
export nrn="v${{ env.NEW_VERSION }}"
gh release create "$nrn" -F /tmp/changelog.md
- run: mv assets/linux/arm64/openvasd assets/openvasd-aarch64-unknown-linux-gnu
- run: mv assets/linux/amd64/openvasd assets/openvasd-x86_64-unknown-linux-gnu
- run: mv assets/linux/arm64/scannerctl assets/scannerctl-aarch64-unknown-linux-gnu
- run: mv assets/linux/amd64/scannerctl assets/scannerctl-x86_64-unknown-linux-gnu
- run: rm -rf assets/linux
- run: ls -las assets/
- name: "sign ${{ env.PROJECT }}"
run: |
mkdir -p assets
ls -las assets/
export nrn="v${{ env.NEW_VERSION }}"
export filename="$PROJECT-$nrn"
curl -sfSL --retry 3 --retry-connrefused --retry-delay 2 -o assets/$filename.zip https://github.com/${{ github.repository }}/archive/refs/tags/$nrn.zip
Expand Down

0 comments on commit f831850

Please sign in to comment.