Skip to content

Commit

Permalink
Merge pull request #163 from tumblr/wpmuguru/build-publish
Browse files Browse the repository at this point in the history
publish workflow
  • Loading branch information
rrennick authored Jan 17, 2023
2 parents d413e92 + 258c157 commit 8534e1c
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Publish tagged version to PyPI

on:
push:

jobs:
build-publish:
name: Publish tagged version to PyPI
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: "3.9"

- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# and then run "tox" from this directory.

[tox]
envlist = py27, py34, py35, py36, py37, pypy
envlist = python

[testenv]
commands = nosetests
Expand Down

0 comments on commit 8534e1c

Please sign in to comment.