Skip to content

Upload Python Package to PyPI Test #5

Upload Python Package to PyPI Test

Upload Python Package to PyPI Test #5

name: Upload Python Package to PyPI
on:
release:
types:
- published
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install build
- name: Build package
run: python -m build
- name: Publish package to test.pypi
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TEST_API_JPMC_OSS }}
repository-url: https://test.pypi.org/legacy/
print_hash: true