From d8625e24f56065c14eb7750a70438072faa0bae1 Mon Sep 17 00:00:00 2001 From: copium <79623528+AzSumPesho@users.noreply.github.com> Date: Thu, 12 Dec 2024 23:12:13 +0200 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b584a10..8b902cd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -34,6 +34,9 @@ jobs: with: name: the jar path: build/libs/*.jar + - name: Get Artifact File Name + id: artifact_name + run: echo "artifact_name=$(basename build/libs/*.jar)" >> $GITHUB_ENV - name: Create GitHub Release id: create_release uses: actions/create-release@v1 @@ -51,8 +54,8 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: build/libs/*.jar - asset_name: the-jar.jar + asset_path: build/libs/${{ env.artifact_name }} + asset_name: ${{ env.artifact_name }} asset_content_type: application/java-archive - name: Discord notification env: