From 3a38db3a5063daae76926018db16579a14ce29af Mon Sep 17 00:00:00 2001 From: Jonathan Lukas <81753891+jonathanlukas@users.noreply.github.com> Date: Mon, 28 Nov 2022 15:35:05 +0100 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6728f9d9..666f77b4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -46,8 +46,12 @@ jobs: id: release - name: Push Worker Image (latest) run: docker push ghcr.io/camunda-community-hub/camunda-7-to-8-migration/diagram-converter:latest + - if: (!github.event.release) + name: Push Worker Image (tag) + run: docker push ghcr.io/camunda-community-hub/camunda-7-to-8-migration/diagram-converter:${{ env.maven_project_version }} - name: Push Worker Image (tag) run: docker push ghcr.io/camunda-community-hub/camunda-7-to-8-migration/diagram-converter:${{ env.maven_project_version }} + if: github.event.release - if: github.event.release name: Attach artifacts to GitHub Release (Release only) uses: actions/upload-release-asset@v1