Skip to content

Commit 4569d93

Browse files
authored
Merge pull request #5 from aboutbits/update-workflow
update workflow
2 parents 8cb5985 + cadd140 commit 4569d93

1 file changed

Lines changed: 13 additions & 8 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
@@ -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: '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+
})

0 commit comments

Comments
 (0)