From 62d986d2eb61c6342142cfb8dbc4760eb0a854e7 Mon Sep 17 00:00:00 2001 From: adamingas Date: Tue, 16 Jan 2024 23:46:16 +0000 Subject: [PATCH 1/2] Misc: Add pypi as publishing target and using OIDC instead of password --- .github/workflows/python-app.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 2f44091..b55c637 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 @@ -64,13 +66,6 @@ jobs: # our package in place of twine. - name: Publish to TestPyPI 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 From 0122293d19d299071560136ebb10340d44e79d69 Mon Sep 17 00:00:00 2001 From: adamingas Date: Tue, 16 Jan 2024 23:48:38 +0000 Subject: [PATCH 2/2] typo --- .github/workflows/python-app.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index b55c637..2711c46 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -64,7 +64,7 @@ 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 - name: Test install from PyPi run: |