From 48ddd9ce135e5030a8dbf5a727f43bb685f5a82d Mon Sep 17 00:00:00 2001 From: MaxIsJoe <34368774+MaxIsJoe@users.noreply.github.com> Date: Sat, 7 Dec 2024 07:05:28 +0200 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9abc483..0060bf1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,13 +28,15 @@ jobs: relative_project_path: ./ archive_output: true - - name: Magic Version - uses: sinkcup/magic-version@v1.2.0 - env: - TAG_PREFIX: v # optional - - - name: Upload Artifact - uses: actions/upload-artifact@v4 + - name: Generate Version + id: versioning + uses: sceccotti89/Github-Action-Versioning@v1.0.5 + - name: Get the output version + run: echo "Version = ${{ steps.versioning.outputs.version }}" + - name: create release + uses: ncipollo/release-action@v1.14.0 with: - name: v-${{ env.MAGIC_VERSION }} - path: ${{ steps.export.outputs.archive_directory }}/* + token: ${{ secrets.GITHUB_TOKEN }} + generateReleaseNotes: true + tag: ${{ steps.versioning.outputs.version }} + artifacts: ${{ steps.export.outputs.archive_directory }}/*