From e48ef6a4ef71ff8e9783a8b8faf37a796fdec143 Mon Sep 17 00:00:00 2001 From: David Benedeki <14905969+benedeki@users.noreply.github.com> Date: Fri, 7 Jun 2024 08:43:46 +0200 Subject: [PATCH] Broken release publish workflow action (#209) * Changes on `release_publish.yml` workflow action * fixed find * debug info * changed back to react to release instead of dispatch --- .github/workflows/release_publish.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release_publish.yml b/.github/workflows/release_publish.yml index 7f34a7379..d126df59b 100644 --- a/.github/workflows/release_publish.yml +++ b/.github/workflows/release_publish.yml @@ -16,9 +16,8 @@ name: Release - publish artifacts on: - workflow_dispatch: -# release: -# types: [released] + release: + types: [released] jobs: # publish-to-sonatype: @@ -64,7 +63,13 @@ jobs: - name: Find JAR file id: find_jar - run: echo "JAR_PATH=$(find . -name 'server/target/jvm-2.13/*.jar' | head -n 1)" >> $GITHUB_ENV + run: echo "JAR_PATH=$(find server/target/jvm-2.13/ -type f -name 'atum-server-assembly-*.jar' | head -n 1)" >> $GITHUB_ENV + + - name: Info on publish + run: | + echo "Server release: ${{ github.event.release.tag_name }}" + echo "Published file: ${{ env.JAR_PATH }}" + echo "In repo: ${{ github.repository }}" - name: Info on publish run: |