Merge pull request #50 from MetroStar/release-1.1.0 #24
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Release" | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
release: | |
name: 'PyPi 🐍 Release 🐍 ' | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout Infrastructure' | |
uses: actions/checkout@main | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install Dependencies | |
run: | | |
pip install twine click | |
- name: Build and Distribute | |
env: | |
PYPI_USERNAME: __token__ | |
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | |
run: | | |
python setup.py sdist | |
twine upload -u $PYPI_USERNAME -p $PYPI_PASSWORD dist/* |