Skip to content

Commit b693d70

Browse files
add release yml script
1 parent 96bd247 commit b693d70

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Release
2+
on:
3+
push:
4+
tags:
5+
- v*
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
name: Checkout
12+
- name: Create release
13+
uses: actions/github-script@v7
14+
with:
15+
github-token: "${{ secrets.GITHUB_TOKEN }}"
16+
script: |
17+
await github.rest.repos.createRelease({
18+
owner: context.repo.owner,
19+
repo: context.repo.repo,
20+
tag_name: "${{ github.ref }}",
21+
name: "${{ github.ref_name }}",
22+
generate_release_notes: true
23+
})

0 commit comments

Comments
 (0)