From ab860f5fa6f7a5e2235a9b27696a7114b1314d00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Vandendaelen?= Date: Sat, 1 Jun 2024 13:23:27 +0200 Subject: [PATCH] Added release generation --- .github/workflows/docker-image.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index fa0c26f..a0f9eda 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -17,9 +17,9 @@ jobs: id: get_version run: | if [[ $GITHUB_REF == refs/tags/* ]]; then - echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/} + echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT else - echo ::set-output name=VERSION::latest + echo "VERSION=latest" >> $GITHUB_OUTPUT fi - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -46,3 +46,7 @@ jobs: lotuxpunk/hestia:latest ghcr.io/lotuxpunk/hestia:${{ steps.get_version.outputs.VERSION }} ghcr.io/lotuxpunk/hestia:latest + - name: Upload Release + run: | + curl -L -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.GHCR_TOKEN }}" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/LotuxPunk/Hestia/releases -d '{"tag_name":"${{ steps.get_version.outputs.VERSION }}","target_commitish":"main","name":"${{ steps.get_version.outputs.VERSION }}","draft":false,"prerelease":false,"generate_release_notes":true}' +