Publish pypi package (#179)

This commit is contained in:
merwanehamadi
2023-07-22 08:08:03 -07:00
committed by GitHub
parent 232b3a433a
commit b8c5c261b8

28
.github/workflows/publish_package.yml vendored Normal file
View File

@@ -0,0 +1,28 @@
name: Publish to PyPI
on:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
- name: Install dependencies
run: poetry install
- name: Build and publish
run: poetry publish --build -u __token__ -p ${{ secrets.PYPI_API_TOKEN }}