Skip to content

Commit

Permalink
add action to publish to pypi (#948)
Browse files Browse the repository at this point in the history
  • Loading branch information
joezuntz committed Jul 13, 2022
1 parent d5408a7 commit b0bffc3
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Upload to PyPI

on:
release:
types: [published]

jobs:
Upload:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup python
uses: actions/setup-python@v2

- name: Build wheel and source tarball
run: |
python setup.py sdist
- name: Publish to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_PYCCL_UPLOAD }}
repository_url: https://test.pypi.org/legacy/

# - name: Publish to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# password: ${{ secrets.PYPI_PYCCL_UPLOAD }}

0 comments on commit b0bffc3

Please sign in to comment.