Skip to content

[Issue #327] ci: Update the wsgi.py to work within the planned prod d… #5

[Issue #327] ci: Update the wsgi.py to work within the planned prod d…

[Issue #327] ci: Update the wsgi.py to work within the planned prod d… #5

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/*