Skip to content

Commit

Permalink
Create pypi-upload.yaml (#14)
Browse files Browse the repository at this point in the history
* Create pypi-upload.yaml

* Fix minor style issues + add manual dispatch

* Update and rename pypi-upload.yaml to pypi-publish.yaml

* Update pypi-publish.yaml

* Move from API to trusted publisher for pypi

* Cleanup PyPI workflow

---------

Co-authored-by: Dan Snow <daniel.snow@cookcountyil.gov>
Co-authored-by: Dan Snow <31494343+dfsnow@users.noreply.github.com>
  • Loading branch information
3 people authored Jul 25, 2024
1 parent 88a5481 commit 0778ec0
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/pypi-publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
on:
workflow_dispatch:
release:
types: [published]

name: pypi-publish

jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/assesspy
permissions:
id-token: write
steps:
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 0778ec0

Please sign in to comment.