Skip to content

Workflow file for this run

name: Publish Python Package to PyPI
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Check current directory
run: pwd
- name: List files in current directory
run: ls -alh
- name: Navigate to project directory
run: cd KolHalashonApi
- name: Verify setup.py exists
run: ls -alh
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python -m pip install --upgrade twine
twine upload dist/*