Skip to content

Commit 6ad3a75

Browse files
committed
Use github-script to create the release
1 parent 7e4fea1 commit 6ad3a75

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
ref: 'latest'
2222

2323
- name: 'Create tag'
24-
uses: actions/github-script@v5
24+
uses: actions/github-script@v7
2525
with:
2626
script: |
2727
github.rest.git.createRef({
@@ -32,9 +32,14 @@ jobs:
3232
})
3333
3434
- name: 'Create the release'
35-
uses: elgohr/Github-Release-Action@v5
36-
env:
37-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
uses: actions/github-script@v7
3836
with:
39-
title: ${{ env.VERSION }}
40-
tag: ${{ env.VERSION }}
37+
script: |
38+
github.rest.repos.createRelease({
39+
owner: context.repo.owner,
40+
repo: context.repo.repo,
41+
tag_name: '${{ env.VERSION }}',
42+
name: '${{ env.VERSION }}',
43+
draft: false,
44+
prerelease: false
45+
})

0 commit comments

Comments
 (0)