File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ concurrency:
1111 group : ${{ github.workflow }}-${{ github.head_ref || github.ref }}
1212 cancel-in-progress : true
1313
14+ permissions :
15+ contents : write # Grants write access to repository contents, including releases
16+
1417jobs :
1518 build :
1619 name : Build
4346 make release
4447
4548 - name : Release
46- uses : softprops/action-gh-release@v1
47- if : startsWith(github.ref, 'refs/tags/')
49+ uses : actions/github-script@v6
50+ with :
51+ script : |
52+ const { repo, owner } = context.repo;
53+ const tag = context.ref.replace('refs/tags/', '');
54+ await github.rest.repos.createRelease({
55+ owner,
56+ repo,
57+ tag_name: tag,
58+ generate_release_notes: true,
59+ });
4860 env :
4961 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments