Skip to content

Commit

Permalink
Merge pull request #3291 from jamshale/update-pypi-upload
Browse files Browse the repository at this point in the history
Change pypi upload workflow to use pypa/gh-action-pypi-publish
  • Loading branch information
swcurran authored Oct 15, 2024
2 parents 79fd911 + 4f22313 commit 505719b
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,23 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/acapy-agent
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install dependencies
- name: Install build and publish dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine poetry
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
poetry build
twine upload dist/*
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 505719b

Please sign in to comment.