-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update publish.yaml
- Loading branch information
Showing
1 changed file
with
14 additions
and
8 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 |
---|---|---|
@@ -1,16 +1,22 @@ | ||
name: Upload Python Package | ||
|
||
on: # yamllint disable-line rule:truthy | ||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
build-and-publish: | ||
runs-on: ubuntu-20.04 | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Publish to PyPI | ||
uses: JRubics/[email protected] | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install Poetry | ||
shell: bash | ||
run: curl -sSL https://install.python-poetry.org | POETRY_VERSION=1.3.2 python3 - | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
pypi_token: ${{ secrets.PYPI_TOKEN }} | ||
python-version: "3.9" | ||
|
||
- run: poetry publish --build -u __token__ -p ${{ secrets.PYPI_TOKEN }} |