Skip to content

Commit

Permalink
Add upload to pypi to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarhiggott committed Oct 25, 2022
1 parent b3247b0 commit 5473136
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -246,21 +246,21 @@ jobs:
run: pytest tests --cov=./src/pymatching --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
# upload_all:
# name: Upload to pypi
# needs: [build_wheels, build_sdist]
# runs-on: ubuntu-latest
# if: github.ref == 'refs/heads/master'
# steps:
# - uses: actions/setup-python@v4
# with:
# python-version: "3.x"
#
# - uses: actions/download-artifact@v3
# with:
# name: artifact
# path: dist
#
# - uses: pypa/gh-action-pypi-publish@v1.5.1
# with:
# password: ${{ secrets.pypi_password }}
upload_all:
name: Upload to pypi
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/setup-python@v4
with:
python-version: "3.9"

- uses: actions/download-artifact@v3
with:
name: artifact
path: dist

- uses: pypa/gh-action-pypi-publish@v1.5.1
with:
password: ${{ secrets.pypi_password }}

0 comments on commit 5473136

Please sign in to comment.