Merge pull request #355 from KoalixSwitzerland/#327-dockerfile-is-not… #7
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: Build and Release PyPI Package | |
on: | |
push: | |
# Run this workflow when a new git tag is pushed | |
tags: | |
- '*' | |
jobs: | |
build_and_release: | |
name: Build and Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: python -m pip install --upgrade pip setuptools wheel | |
- name: Build package | |
run: python setup.py sdist bdist_wheel | |
- name: Install twine | |
run: pip install twine | |
- name: Check distribution | |
run: twine check dist/* | |
- name: Publish package | |
env: | |
TWINE_USERNAME: __token__ | |
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} | |
run: twine upload dist/* |