Skip to content

Instantly share code, notes, and snippets.

@ucalyptus2
Created July 15, 2020 16:16
Show Gist options
  • Save ucalyptus2/450f031ff57af8dbc6dc4994c9da8eb2 to your computer and use it in GitHub Desktop.
Save ucalyptus2/450f031ff57af8dbc6dc4994c9da8eb2 to your computer and use it in GitHub Desktop.
name: Upload Python Package
on:
release:
types: [created]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.6'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment