-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Publish on tag-triggered actions Co-authored-by: ItsDrike <[email protected]>
- Loading branch information
1 parent
856a0de
commit cab2760
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Publish to PyPi | ||
|
||
on: | ||
push: | ||
tags: | ||
# This pattern is not a typical regular expression, see: | ||
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet | ||
- "v*" | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
deploy: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup poetry | ||
id: poetry_setup | ||
uses: ItsDrike/setup-poetry@v1 | ||
with: | ||
python-version: 3.11 | ||
install-args: "--with release" | ||
|
||
- name: Build package | ||
run: poetry build | ||
|
||
- name: Publish package | ||
env: | ||
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }} | ||
run: poetry publish --no-interaction |