Update maven.yml
This commit is contained in:
parent
7cf9940933
commit
1a269bfa83
1 changed files with 3 additions and 11 deletions
14
.github/workflows/maven.yml
vendored
14
.github/workflows/maven.yml
vendored
|
@ -44,16 +44,8 @@ jobs:
|
||||||
run: mvn clean install
|
run: mvn clean install
|
||||||
working-directory: ./ # Set the working directory to the root of the project
|
working-directory: ./ # Set the working directory to the root of the project
|
||||||
|
|
||||||
- name: Erstelle Release
|
- name: List contents of builds directory
|
||||||
id: create_release
|
run: ls -l ./builds
|
||||||
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: Lade Artefakt zur Veröffentlichung hoch
|
- name: Lade Artefakt zur Veröffentlichung hoch
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
|
@ -61,6 +53,6 @@ jobs:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
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_name: ExtremeDemonList-${{ steps.version.outputs.VERSION }}-SNAPSHOT.jar
|
||||||
asset_content_type: application/java-archive
|
asset_content_type: application/java-archive
|
||||||
|
|
Loading…
Reference in a new issue