From 518355a68ade99c34eb53a74e0364248d62cb6a1 Mon Sep 17 00:00:00 2001 From: Sheldan <5037282+Sheldan@users.noreply.github.com> Date: Mon, 19 Feb 2024 01:45:39 +0100 Subject: [PATCH] [AB-xxx] adding creation of release to release job --- .github/workflows/release_manual.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/release_manual.yml b/.github/workflows/release_manual.yml index d0b2e44ae..74bf58a02 100644 --- a/.github/workflows/release_manual.yml +++ b/.github/workflows/release_manual.yml @@ -1,5 +1,8 @@ name: Publishes a new version of abstracto on: workflow_dispatch +permissions: + packages: write + contents: write jobs: publish: runs-on: ubuntu-latest @@ -16,6 +19,12 @@ jobs: id: version working-directory: ./abstracto-application run: echo "version=$(mvn -q -Dexec.executable="echo" -Dexec.args='${project.version}' --non-recursive exec:exec | cut -d- -f1)" >> $GITHUB_ENV + - name: Create a Release + uses: elgohr/Github-Release-Action@v5 + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + title: Release of version ${{ env.version }} - name: Release maven packages uses: qcastel/github-actions-maven-release@v1.12.41 env: