Update maven.yml
This commit is contained in:
parent
0afed738e8
commit
0ec66437ea
1 changed files with 21 additions and 1 deletions
22
.github/workflows/maven.yml
vendored
22
.github/workflows/maven.yml
vendored
|
@ -33,4 +33,24 @@ jobs:
|
|||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: packaged-jar
|
||||
path: staging
|
||||
path: staging#
|
||||
|
||||
create_release:
|
||||
needs: build_test
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write # This line gives the token permission to create releases
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Generate tag
|
||||
id: tag
|
||||
run: echo "::set-output name=tag::$(date +'%Y%m%d%H%M%S')"
|
||||
- name: Create Release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ steps.tag.outputs.tag }}
|
||||
release_name: Release ${{ steps.tag.outputs.tag }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
|
|
Loading…
Reference in a new issue