Skip to content

Commit

Permalink
Added release generation
Browse files Browse the repository at this point in the history
  • Loading branch information
LotuxPunk committed Jun 1, 2024
1 parent 77d1936 commit ab860f5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}'

0 comments on commit ab860f5

Please sign in to comment.