Skip to content

Commit

Permalink
Merge pull request #5 from adamingas/development
Browse files Browse the repository at this point in the history
Misc: Add pypi as publishing target and using OIDC instead of password
  • Loading branch information
adamingas authored Jan 16, 2024
2 parents 0eb143d + 0122293 commit dde907a
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 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 @@ -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
pip install ordinalgbt

0 comments on commit dde907a

Please sign in to comment.