Skip to content

Commit

Permalink
automatically publish tagged versions to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
wrboyce committed Nov 11, 2021
1 parent 5b6e241 commit ad39eb0
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:
push:
tags: ["v*"]

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@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit ad39eb0

Please sign in to comment.