Skip to content

Commit 16330d6

Browse files
committed
adding auto-publish
1 parent cd76350 commit 16330d6

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/auto-publish.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Auto-publish
2+
3+
on: [push, workflow_dispatch]
4+
5+
jobs:
6+
# Auto-publish when version is increased
7+
publish-job:
8+
# Only publish on `main` branch
9+
if: github.ref == 'refs/heads/main'
10+
runs-on: ubuntu-latest
11+
permissions: # Don't forget permissions
12+
contents: write
13+
14+
steps:
15+
- uses: etils-actions/pypi-auto-publish@v1.5.2
16+
with:
17+
gh-token: ${{ secrets.GITHUB_TOKEN }}
18+
parse-changelog: true

0 commit comments

Comments
 (0)