Skip to content

Commit

Permalink
Add publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Mallory Wittwer committed Nov 15, 2023
1 parent 2d335d5 commit 9d4547d
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Build the package and publish it to PyPI on tag push.
name: Publish to PyPI
on:
push:
tags:
- "*"

jobs:
publish:
name: publish
# needs: [tests] # require tests to pass before deploy runs
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Build package
run: |
python -m pip install -U pip build
python -m build
- name: Publish
uses: pypa/gh-action-pypi-publish@v1.5.0
with:
user: __token__
password: ${{ secrets.PYPI_KEY }}

0 comments on commit 9d4547d

Please sign in to comment.