Skip to content

Upload Python Package #5

Upload Python Package

Upload Python Package #5

Workflow file for this run

name: Upload Python Package
on:
release:
types: [published]
env:
PYPIRC_FILE: .pypirc
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
run: |
sudo apt-get install -y gettext-base
envsubst < $PYPIRC_FILE
python setup.py sdist
twine upload dist/* --config-file $PYPIRC_FILE --verbose