Skip to content

Commit

Permalink
Misc: Add pypi as publishing target and using OIDC instead of password
Browse files Browse the repository at this point in the history
  • Loading branch information
adamingas committed Jan 16, 2024
1 parent f902780 commit 62d986d
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
pip install ordinalgbt

0 comments on commit 62d986d

Please sign in to comment.