This commit is contained in:
charlesgauthereau
2026-03-06 13:24:18 +01:00
parent da3a8d7fbe
commit ff83ee9c62
2 changed files with 22 additions and 8 deletions
+20 -6
View File
@@ -3,10 +3,10 @@ name: Publish Docker image for release
on: on:
release: release:
types: [ created ] types: [ created ]
push: # push:
tags: # tags:
- "*.*.*" # - "*.*.*"
- "!*-*" # - "!*-*"
permissions: permissions:
contents: read contents: read
@@ -37,13 +37,27 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Get draft release tag
if: ${{ github.event.release.draft == true }}
id: draft_tag
run: |
TAG=$(gh release view ${{ github.event.release.id }} --json tagName -q ".tagName")
echo "RELEASE_TAG=$TAG" >> $GITHUB_ENV
# - name: Publish GitHub Release
# if: ${{ github.event.release.draft == true }}
# env:
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# # gh release edit v${{ github.ref_name }} --draft=false
# run: |
# gh release edit ${{ github.event.release.id }} --draft=false
- name: Publish GitHub Release - name: Publish GitHub Release
if: ${{ github.event.release.draft == true }} if: ${{ github.event.release.draft == true }}
env: env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# gh release edit v${{ github.ref_name }} --draft=false
run: | run: |
gh release edit ${{ github.event.release.id }} --draft=false gh release edit $RELEASE_TAG --draft=false
discord_notification: discord_notification:
needs: docker_publish needs: docker_publish
+2 -2
View File
@@ -7,10 +7,10 @@
}, },
"git": { "git": {
"commit": true, "commit": true,
"commitMessage": "chore: release v${version}", "commitMessage": "chore: release ${version}",
"requireCleanWorkingDir": true, "requireCleanWorkingDir": true,
"tag": true, "tag": true,
"tagName": "v${version}", "tagName": "${version}",
"push": true "push": true
}, },
"plugins": { "plugins": {