Update maven.yml
This commit is contained in:
parent
a0fe90eea0
commit
9b285a1f75
1 changed files with 13 additions and 2 deletions
15
.github/workflows/maven.yml
vendored
15
.github/workflows/maven.yml
vendored
|
@ -18,6 +18,17 @@ jobs:
|
|||
java-version: '17'
|
||||
distribution: 'temurin'
|
||||
|
||||
- name: Configure Git User
|
||||
run: |
|
||||
git config --local user.email "action@github.com"
|
||||
git config --local user.name "GitHub Action"
|
||||
|
||||
- name: Create Git Tag
|
||||
run: git tag $(date +'%Y%m%d%H%M%S') -a -m "Generated tag from GitHub Actions"
|
||||
|
||||
- name: Push Tags
|
||||
run: git push --tags
|
||||
|
||||
- name: Build with Maven
|
||||
run: mvn clean install
|
||||
|
||||
|
@ -26,8 +37,8 @@ jobs:
|
|||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ env.RELEASE_VERSION }} # Stelle sicher, dass diese Umgebungsvariable deiner aktuellen Version entspricht
|
||||
release_name: Release ${{ env.RELEASE_VERSION }}
|
||||
tag_name: $(git describe --tags --abbrev=0)
|
||||
release_name: Release $(git describe --tags --abbrev=0)
|
||||
draft: false
|
||||
prerelease: false
|
||||
|
||||
|
|
Loading…
Reference in a new issue