Skip to content

Publish Python Package to PyPI #24

Publish Python Package to PyPI

Publish Python Package to PyPI #24

Workflow file for this run

name: Publish Python Package to PyPI
on:
release:
types: [created]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build package
run: |
python -m build
ls -l dist # List files in dist directory for debugging
- name: Publish package
env:
TWINE_USERNAME: ${{ secrets.PYPI_MS_MINT_APP_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN_MS_MINT_APP }}
run: |
twine upload dist/* --verbose