Update maven.yml

This commit is contained in:
potzplitz 2024-03-03 02:17:02 +01:00 committed by GitHub
parent 7cf9940933
commit 1a269bfa83
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -44,16 +44,8 @@ jobs:
run: mvn clean install
working-directory: ./ # Set the working directory to the root of the project
- name: Erstelle Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ steps.version.outputs.VERSION }}
release_name: Release v${{ steps.version.outputs.VERSION }}
draft: false
prerelease: false
- name: List contents of builds directory
run: ls -l ./builds
- name: Lade Artefakt zur Veröffentlichung hoch
uses: actions/upload-release-asset@v1
@ -61,6 +53,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./builds/ExtremeDemonList-${{ steps.version.outputs.VERSION }}-SNAPSHOT.jar
asset_path: ./target/ExtremeDemonList-${{ steps.version.outputs.VERSION }}-SNAPSHOT.jar # Update the path to the generated JAR file
asset_name: ExtremeDemonList-${{ steps.version.outputs.VERSION }}-SNAPSHOT.jar
asset_content_type: application/java-archive