3.15.0 #44
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 to PyPi | |
on: | |
release: | |
# `created` does not fire on draft releases. `published` fires | |
# when a draft release is published. having both reduces footguns. | |
types: [created] | |
jobs: | |
build: | |
name: Release to PyPi | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Install Python 3.x | |
uses: actions/setup-python@v1 | |
with: | |
python-version: '3.11.x' | |
# | |
- name: Install Python Dependencies | |
run: python setup.py install | |
- name: Run Integration Tests | |
env: | |
MUX_TOKEN_ID: ${{ secrets.MUX_TOKEN_ID }} | |
MUX_TOKEN_SECRET: ${{ secrets.MUX_TOKEN_SECRET }} | |
run: bash test.sh | |
# | |
- name: Install packaging dependencies | |
run: pip install --user --upgrade setuptools wheel twine | |
- name: Build Package | |
run: python setup.py sdist bdist_wheel | |
- name: Remove .egg files | |
run: rm dist/*.egg | |
- name: Push Package to PyPi | |
env: | |
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }} | |
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} | |
run: | | |
export PATH=$PATH:/home/runner/.local/bin | |
twine upload --non-interactive dist/* |