Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AzSumPesho authored Dec 12, 2024
1 parent d2b102f commit d8625e2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit d8625e2

Please sign in to comment.