From 0ec66437eac3eba5e5968854d6c8fc8cd4ae6695 Mon Sep 17 00:00:00 2001 From: potzplitz <127513690+potzplitz@users.noreply.github.com> Date: Sun, 3 Mar 2024 13:34:53 +0100 Subject: [PATCH] Update maven.yml --- .github/workflows/maven.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 52c82b3..18f7634 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -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