mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
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:
co-authored by
charlesgauthereau
parent
c925407f05
commit
44ed9e9ca6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user