Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mscroggs committed Nov 24, 2023
1 parent 1450adf commit c506a34
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/push-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,23 @@ name: 📦 Packaging
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*'
#tags:
# - 'v*'

jobs:
pypi:
name: Build and publish to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.10
- name: Set up Python 3.12
uses: actions/setup-python@v1
with:
python-version: "3.12"
- name: Build a binary wheel and a source tarball
- name: Build a wheel
run: |
pip install wheel
python setup.py bdist_wheel
python setup.py sdist --formats=gztar
python3 -m pip install build
python3 -m build .
- name: Publish to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
Expand Down

0 comments on commit c506a34

Please sign in to comment.