Skip to content

Commit

Permalink
Add pypi-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
insolor committed May 16, 2023
1 parent 4f120ea commit 4ce5d0d
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/pypi-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Deploy on pypi.org

on:
release:
types: [published]
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install poetry
run: pipx install poetry

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.7
cache: "poetry"
cache-dependency-path: poetry.lock

- name: Build and publish on pypi.org
env:
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: poetry publish --build --username $PYPI_USERNAME --password $PYPI_PASSWORD

0 comments on commit 4ce5d0d

Please sign in to comment.