Skip to content

make publish workflow triggered by all tags #16

make publish workflow triggered by all tags

make publish workflow triggered by all tags #16

Workflow file for this run

name: publish
on:
push:
tags:
- '*'
jobs:
build-n-publish:
name: Build and publish Python dist to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
- name: Set up Python
uses: actions/setup-python@v2
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@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}