Skip to content

tweaking publish workflow still #5

tweaking publish workflow still

tweaking publish workflow still #5

Workflow file for this run

name: publish
on: [push]
jobs:
build-n-publish:
name: Build and publish Python dist to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Install build module
run: |
python -m pip install build
- name: Build a binary wheel and a source tarball
run: |
python -m build
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: gwf
password: ${{ secrets.pypi_password }}