Skip to content

Commit 9af5c5c

Browse files
authored
Merge pull request #3 from aboutbits/update-workflow
update workflow
2 parents cbcb57c + 76cd17d commit 9af5c5c

2 files changed

Lines changed: 14 additions & 9 deletions

File tree

.github/workflows/publish.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
jobs:
1111
publish:
1212
timeout-minutes: 15
13-
runs-on: ubuntu-22.04
13+
runs-on: ubuntu-24.04
1414
permissions:
1515
contents: read
1616
packages: write
@@ -28,16 +28,21 @@ jobs:
2828
env:
2929
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3030

31-
tag:
31+
release:
3232
timeout-minutes: 5
33-
runs-on: ubuntu-22.04
33+
runs-on: ubuntu-24.04
3434
needs: publish
3535
steps:
3636
- uses: actions/checkout@v4
3737

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

.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)