From 5e98c4fda8321fb83d542c09ec6d12f628f735bd Mon Sep 17 00:00:00 2001 From: Andreas Hufler Date: Thu, 14 Aug 2025 12:14:18 +0200 Subject: [PATCH] update workflow --- .github/workflows/publish.yml | 17 +++++++++++------ .github/workflows/test.yml | 2 +- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 253e9c4..ae88c0b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -29,16 +29,21 @@ jobs: GITHUB_USER_NAME: ${{ github.actor }} GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} - tag: + release: timeout-minutes: 5 runs-on: ubuntu-24.04 needs: publish steps: - uses: actions/checkout@v4 - - name: Tag Deployment - uses: aboutbits/github-actions-base/git-create-or-update-tag@v1 + - name: Create GitHub release + uses: actions/github-script@v7 with: - tag-name: ${{ github.event.inputs.version }} - user-name: 'AboutBits' - user-email: 'info@aboutbits.it' + script: | + github.rest.repos.createRelease({ + owner: context.repo.owner, + repo: context.repo.repo, + tag_name: '${{ github.event.inputs.version }}', + name: 'Release ${{ github.event.inputs.version }}', + prerelease: '${{ github.event.inputs.version }}'.includes('RC') + }) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 72ed23d..3284ef0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,7 +6,7 @@ on: jobs: test: name: Maven-Java - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 timeout-minutes: 10 steps: - uses: actions/checkout@v4