Skip to content

Commit

Permalink
Update publish to use trusted publisher authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
mattprintz committed Aug 7, 2024
1 parent f5aff3b commit 3d7f495
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ jobs:
environment: publish
# No strategeies needed for publish
steps:
- uses: actions/checkout@v1
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.workflow_run.head_branch }}
- uses: actions/setup-python@v4
with:
python-version: '3.10'
Expand All @@ -20,8 +23,8 @@ jobs:
poetry-version: 1.4.1
- name: Create environment
run: poetry install
- name: Publish to PyPi
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.POETRY_PYPI_TOKEN_PYPI }}
run: poetry publish --build
- name: Build
run: poetry build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 3d7f495

Please sign in to comment.