Skip to content

Commit

Permalink
automatically publish tagged versions to pypi (#1075)
Browse files Browse the repository at this point in the history
  • Loading branch information
wrboyce authored Jan 7, 2022
1 parent 465773a commit a1e842c
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CD

on: # yamllint disable-line rule:truthy
create:
tags: ["v?[0-9]+.[0-9]+.[0-9]+"]

jobs:
publish:
runs-on: ubuntu-20.04
steps:
- name: Checkout Code Repository
uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install `pypa/build`
run: python -m pip install build
- name: Build sdist and wheel
run: python -m build --sdist --wheel --outdir ./dist/
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit a1e842c

Please sign in to comment.