Skip to content

Commit 5e98c4f

Browse files
committed
update workflow
1 parent 2e7f6f5 commit 5e98c4f

2 files changed

Lines changed: 12 additions & 7 deletions

File tree

.github/workflows/publish.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,21 @@ jobs:
2929
GITHUB_USER_NAME: ${{ github.actor }}
3030
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3131

32-
tag:
32+
release:
3333
timeout-minutes: 5
3434
runs-on: ubuntu-24.04
3535
needs: publish
3636
steps:
3737
- uses: actions/checkout@v4
3838

39-
- name: Tag Deployment
40-
uses: aboutbits/github-actions-base/git-create-or-update-tag@v1
39+
- name: Create GitHub release
40+
uses: actions/github-script@v7
4141
with:
42-
tag-name: ${{ github.event.inputs.version }}
43-
user-name: 'AboutBits'
44-
user-email: 'info@aboutbits.it'
42+
script: |
43+
github.rest.repos.createRelease({
44+
owner: context.repo.owner,
45+
repo: context.repo.repo,
46+
tag_name: '${{ github.event.inputs.version }}',
47+
name: 'Release ${{ github.event.inputs.version }}',
48+
prerelease: '${{ github.event.inputs.version }}'.includes('RC')
49+
})

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
jobs:
77
test:
88
name: Maven-Java
9-
runs-on: ubuntu-22.04
9+
runs-on: ubuntu-24.04
1010
timeout-minutes: 10
1111
steps:
1212
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)