Skip to content

Commit 5ad5066

Browse files
authored
Merge pull request #24 from aboutbits/update-workflow
update workflow
2 parents 5de16e2 + 6a06494 commit 5ad5066

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

.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
@@ -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
34-
runs-on: ubuntu-22.04
34+
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: '[email protected]'
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)