Skip to content

Commit

Permalink
Merge pull request #538 from jenshnielsen/use_trusted_flow
Browse files Browse the repository at this point in the history
Use trusted flow for pypi publishing
  • Loading branch information
trevormorgan authored Apr 26, 2023
2 parents 5c942de + 31a2147 commit d5257d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/upload_to_pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:

runs-on: ubuntu-latest
environment: pypi-release-env
permissions:
id-token: write
steps:
- uses: actions/[email protected]
- name: Set up Python
Expand All @@ -21,11 +23,5 @@ jobs:
- name: Build
run: |
python -m build
- name: Install Twine
run: pip install twine
- name: Publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
twine upload dist/*
- name: Publish to pypi
uses: pypa/gh-action-pypi-publish@release/v1
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[build-system]
requires = [
"setuptools >= 61.2",
"wheel >= 0.29.0",
"versioningit ~= 2.0.1",
]
build-backend = 'setuptools.build_meta'
Expand Down

0 comments on commit d5257d2

Please sign in to comment.