Update manual-build.yml

This commit is contained in:
Kamil Kosek
2024-12-10 17:27:17 +01:00
committed by GitHub
parent 11bd25e5be
commit 3862730203

View File

@@ -32,7 +32,7 @@ jobs:
- name: Extract Version - name: Extract Version
id: extract_version id: extract_version
run: | run: |
version=$(python3 -c "import version; print(f'${{ env.BRANCH_NAME}}-{version.__version__}')") version=$(python3 -c "import version; print(f'${version.__version__}')")
echo "VERSION=$version" >> $GITHUB_ENV echo "VERSION=$version" >> $GITHUB_ENV
- name: Read Changelog - name: Read Changelog
@@ -68,13 +68,15 @@ jobs:
push: true push: true
tags: | tags: |
ghcr.io/${{ github.repository }}:${{ env.COMMIT_SHA }} ghcr.io/${{ github.repository }}:${{ env.COMMIT_SHA }}
ghcr.io/${{ github.repository }}:dev ghcr.io/${{ github.repository }}:${{ env.BRANCH_NAME }}
ghcr.io/${{ github.repository }}:${{ env.VERSION }} ghcr.io/${{ github.repository }}:${{ env.BRANCH_NAME }}-${{ env.VERSION }}
- name: Create GitHub Release - name: Create GitHub Release
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
with: with:
tag_name: ${{ env.VERSION }} tag_name: |
name: Dev Release ${{ env.VERSION }} ${{ env.BRANCH_NAME }}-${{ env.VERSION }}
name: |
${{ env.BRANCH_NAME }} Release ${{ env.VERSION }}
body: | body: |
${{ env.CHANGELOG_CONTENT }} ${{ env.CHANGELOG_CONTENT }}
generate_release_notes: true generate_release_notes: true