From 60d80765b31a6c8d56458cf0843fdc25cd215040 Mon Sep 17 00:00:00 2001 From: junkfactory <2998269+junkfactory@users.noreply.github.com> Date: Sat, 3 Aug 2024 10:00:51 -0700 Subject: [PATCH] Fixing workflow --- .github/workflows/release.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ef7bc67..602198e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,6 +10,7 @@ on: jobs: release: + name: Create Release runs-on: ubuntu-latest env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -27,7 +28,12 @@ jobs: - name: Build Plugin run: | ./gradlew buildPlugin --no-daemon - PKG="$(basename ${{ github.repository }})-${{ github.ref_name }}.zip" - ls -l ./build/distributions - mv ./build/distributions/${{ github.repository }}-snapshot.zip "$PKG" - gh release create ${{ github.ref_name }} "./build/distributions/$PKG" --generate-notes \ No newline at end of file + - name: Publish Release + env: + DIST_DIR: "./build/distributions" + run: | + PROJECT_NAME="$(basename ${{ github.repository }})" + PKG="$PROJECT_NAME-${{ github.ref_name }}.zip" + ls -l "$DIST_DIR" + mv "$DIST_DIR/$PROJECT_NAME-snapshot.zip" "$DIST_DIR/$PKG" + gh release create ${{ github.ref_name }} "$DIST_DIR/$PKG" --generate-notes \ No newline at end of file