Skip to content

Commit

Permalink
Merge pull request #8 from kthyng/main
Browse files Browse the repository at this point in the history
Update so that pypi release will work again with 2fa
  • Loading branch information
kthyng authored Nov 27, 2023
2 parents 59e33ca + 7bcbe62 commit c320ea8
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ on: [push]

jobs:
release:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/xcmocean
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
Expand All @@ -17,8 +23,4 @@ jobs:
run: python setup.py sdist bdist_wheel

- name: Publish to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: ${{ secrets.PYPI_USERNAME }}
password: ${{ secrets.PYPI_PASSWORD }}
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit c320ea8

Please sign in to comment.