Skip to content

Commit

Permalink
update publish.yaml for PyPI (#199)
Browse files Browse the repository at this point in the history
Update publish.yaml
  • Loading branch information
shouples authored Mar 31, 2023
1 parent 720cab7 commit bd35271
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/publish.yaml
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 }}

0 comments on commit bd35271

Please sign in to comment.