From bdecfc92af01bf359389ea27f4bbad5888487648 Mon Sep 17 00:00:00 2001 From: r-vdp Date: Tue, 9 Jul 2024 10:36:58 +0200 Subject: [PATCH] Make sure to include the updated sources in the release --- .github/workflows/build-hds.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-hds.yaml b/.github/workflows/build-hds.yaml index 4ef379a..cca9f49 100644 --- a/.github/workflows/build-hds.yaml +++ b/.github/workflows/build-hds.yaml @@ -144,8 +144,8 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: >- - gh release create ${{ steps.date.outputs.date }} --repo ${{ github.repository }} --title - "Version ${{ steps.date.outputs.date }}" "holo-dev-server-x86_64-linux.tar.gz" + gh release create --draft ${{ steps.date.outputs.date }} --repo ${{ github.repository }} + --title "Version ${{ steps.date.outputs.date }}" "holo-dev-server-x86_64-linux.tar.gz" "holo-dev-server-aarch64-linux.tar.gz" "holo-dev-server-aarch64-darwin.tar.gz" update-sources: @@ -247,3 +247,11 @@ jobs: git commit -m "update to release ${{ needs.upload-binary.outputs.release_name }}" git push origin HEAD:refs/heads/main fi + + - name: update and undraft release + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: |- + git tag -a -f ${{ needs.upload-binary.outputs.release_name }} + git push tags --force + gh release edit --draft=false ${{ needs.upload-binary.outputs.release_name }}