Skip to content

Commit a5d130a

Browse files
committed
ci: add pypi release
1 parent 76893c8 commit a5d130a

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,23 @@ jobs:
4545
- name: Run tests
4646
run: |
4747
pytest
48+
49+
release-pypi:
50+
name: "Release to pypi"
51+
runs-on: ubuntu-latest
52+
if: github.event_name == 'release'
53+
needs: [build-docs, tests, test-rsconnect]
54+
steps:
55+
- uses: actions/checkout@v2
56+
- uses: actions/setup-python@v2
57+
with:
58+
python-version: "3.10"
59+
- name: "Build Package"
60+
run: |
61+
python -m pip install build wheel
62+
python -m build --sdist --wheel
63+
- name: "Deploy to Test PyPI"
64+
uses: pypa/gh-action-pypi-publish@release/v1
65+
with:
66+
user: __token__
67+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)