Update maven.yml
This commit is contained in:
parent
96cf0b9f1f
commit
712aee6a20
1 changed files with 10 additions and 4 deletions
14
.github/workflows/maven.yml
vendored
14
.github/workflows/maven.yml
vendored
|
@ -7,9 +7,15 @@ on:
|
|||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
env:
|
||||
MAJOR: ${{ env.MAJOR }}
|
||||
MINOR: ${{ env.MINOR }}
|
||||
PATCH: ${{ env.PATCH }}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -43,8 +49,8 @@ jobs:
|
|||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: $(git describe --tags --abbrev=0)
|
||||
release_name: Release $(git describe --tags --abbrev=0)
|
||||
tag_name: v${{ env.MAJOR }}.${{ env.MINOR }}.${{ env.PATCH }}
|
||||
release_name: Release v${{ env.MAJOR }}.${{ env.MINOR }}.${{ env.PATCH }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
|
||||
|
@ -54,6 +60,6 @@ jobs:
|
|||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: ./target/ExtremeDemonList-0.0.1-SNAPSHOT.jar
|
||||
asset_name: ExtremeDemonList-0.0.1-SNAPSHOT.jar
|
||||
asset_path: ./target/ExtremeDemonList-${{ env.MAJOR }}.${{ env.MINOR }}.${{ env.PATCH }}-SNAPSHOT.jar
|
||||
asset_name: ExtremeDemonList-${{ env.MAJOR }}.${{ env.MINOR }}.${{ env.PATCH }}-SNAPSHOT.jar
|
||||
asset_content_type: application/java-archive
|
||||
|
|
Loading…
Reference in a new issue