diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 2f44091..2711c46 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -44,7 +44,9 @@ jobs: if: github.event_name == 'push' && github.ref == 'refs/heads/main' # Set up operating system runs-on: ubuntu-latest - + environment: + name: pypi + url: https://pypi.org/p/ordinalgbt # Define job steps steps: - name: Set up Python 3.9 @@ -62,15 +64,8 @@ jobs: run: python -m build --sdist --wheel # Finally, we use a pre-defined action to publish # our package in place of twine. - - name: Publish to TestPyPI + - name: Publish to PyPI uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - password: ${{ secrets.TEST_PYPI_API_TOKEN }} - repository_url: https://test.pypi.org/legacy/ - - name: Test install from TestPyPI + - name: Test install from PyPi run: | - pip install \ - --index-url https://test.pypi.org/simple/ \ - --extra-index-url https://pypi.org/simple \ - ordinalgbt \ No newline at end of file + pip install ordinalgbt \ No newline at end of file