Skip to content

pgzrun a directory

pgzrun a directory #68

Workflow file for this run

name: "Build Wheels"
on:
workflow_dispatch:
push:
release:
types:
- published
jobs:
buildpackage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install wheel and SDist requirements
run: python -m pip install "setuptools>=42.0" wheel twine
- name: Build SDist
run: python setup.py sdist bdist_wheel
- uses: actions/upload-artifact@v2
with:
path: |
dist/*.tar.gz
dist/*.whl
publish:
needs: [buildpackage]
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
steps:
- uses: actions/download-artifact@v2
with:
name: artifact
path: dist
- uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}