Update maven.yml

This commit is contained in:
potzplitz 2024-03-03 00:26:58 +01:00 committed by GitHub
parent 99febc8216
commit 50b6fb5245
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,19 +26,18 @@ jobs:
create_release: create_release:
needs: build needs: build
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
contents: write # This line gives the token permission to create releases
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Generate tag - name: Generate tag
id: tag id: tag
run: echo "::set-output name=tag::$(date +'%Y%m%d%H%M%S')" run: echo "::set-output name=tag::$(date +'%Y%m%d%H%M%S')"
- name: Create Release - name: Create Release
uses: actions/create-release@v1 id: create_release
env: uses: softprops/action-gh-release@v1
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
tag_name: ${{ steps.tag.outputs.tag }} tag_name: ${{ steps.tag.outputs.tag }}
release_name: Release ${{ steps.tag.outputs.tag }} name: Release ${{ steps.tag.outputs.tag }}
draft: false draft: false
prerelease: false prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}