fix: workflow

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

---------

Co-authored-by: charlesgauthereau <charles.gauthereau@soluce-technologies.com>
This commit is contained in:
Charles GTE
2026-03-06 13:07:39 +01:00
committed by GitHub
co-authored by charlesgauthereau
parent c925407f05
commit 44ed9e9ca6
2 changed files with 7 additions and 39 deletions
+6 -12
View File
@@ -1,6 +1,8 @@
name: Publish Docker image for release
on:
release:
types: [ created ]
push:
tags:
- "*.*.*"
@@ -12,22 +14,12 @@ permissions:
jobs:
log-draft-tag:
runs-on: ubuntu-latest
steps:
- name: Download draft tag artifact
uses: actions/download-artifact@v4
with:
name: draft_tag
path: .
- name: Read draft tag
id: draft
run: |
DRAFT_TAG=$(cat draft_tag.txt)
echo $DRAFT_TAG
echo "draft_tag=$DRAFT_TAG" >> $GITHUB_OUTPUT
echo ${{ github.event.release.tag_name }}
docker_publish:
uses: ./.github/workflows/docker.yml
@@ -46,10 +38,12 @@ jobs:
fetch-depth: 0
- 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 v${{ github.ref_name }} --draft=false
gh release edit ${{ github.event.release.tag_name }} --draft=false
discord_notification:
needs: docker_publish