Skip to content

Commit 80f4edd

Browse files
committed
also create a tag on the released commit
1 parent 6f3b124 commit 80f4edd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/release.yml

+10
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,16 @@ jobs:
6161
echo "release_tag=$release_tag"
6262
echo "release_version=$release_version" >> $GITHUB_OUTPUT
6363
echo "release_tag=$release_tag" >> $GITHUB_OUTPUT
64+
- name: Tag commit
65+
uses: actions/[email protected]
66+
with:
67+
script: |
68+
github.rest.git.createRef({
69+
owner: context.repo.owner,
70+
repo: context.repo.repo,
71+
ref: 'refs/tags/${{ env.release_tag }}',
72+
sha: context.sha
73+
})
6474
- name: Build Source Distribution
6575
run: |
6676
python setup.py sdist

0 commit comments

Comments
 (0)