Skip to content

Commit

Permalink
reduce to one action
Browse files Browse the repository at this point in the history
  • Loading branch information
jdtuck committed Nov 18, 2023
1 parent 023b2ac commit f4ef4a4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 76 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,27 @@ jobs:
coverage run -m unittest
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v3

deploy:

runs-on: ubuntu-latest
if: startsWith( github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine cibuildwheel
- name: Build package
run: |
python -m build --sdist
python -m cibuildwheel --output-dir dist
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
76 changes: 0 additions & 76 deletions .github/workflows/python-publish.yml

This file was deleted.

0 comments on commit f4ef4a4

Please sign in to comment.