Skip to content

Commit 391f9a5

Browse files
committed
feat: add semantic-release
1 parent 9a19d67 commit 391f9a5

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

.github/workflows/publish-to-pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,15 @@ jobs:
7171
./dist/*.whl
7272
- name: Create GitHub Release
7373
env:
74-
GITHUB_TOKEN: ${{ github.token }}
74+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
7575
run: >-
7676
gh release create
7777
'${{ github.ref_name }}'
7878
--repo '${{ github.repository }}'
7979
--notes ""
8080
- name: Upload artifact signatures to GitHub Release
8181
env:
82-
GITHUB_TOKEN: ${{ github.token }}
82+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
8383
# Upload to GitHub Release using the `gh` CLI.
8484
# `dist/` contains the built packages, and the
8585
# sigstore-produced signatures and certificates.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Semantic Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
concurrency: release
12+
permissions:
13+
id-token: write
14+
contents: write
15+
16+
steps:
17+
- uses: actions/checkout@v3
18+
with:
19+
fetch-depth: 0
20+
21+
- name: Python Semantic Release
22+
uses: python-semantic-release/python-semantic-release@master
23+
with:
24+
github_token: ${{ secrets.GH_TOKEN }}

0 commit comments

Comments
 (0)