From 0778ec0f0509fd42960e1aaf30207591605f75ae Mon Sep 17 00:00:00 2001 From: William Ridgeway <10358980+wrridgeway@users.noreply.github.com> Date: Thu, 25 Jul 2024 10:00:46 -0500 Subject: [PATCH] Create pypi-upload.yaml (#14) * 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 Co-authored-by: Dan Snow <31494343+dfsnow@users.noreply.github.com> --- .github/workflows/pypi-publish.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/pypi-publish.yaml diff --git a/.github/workflows/pypi-publish.yaml b/.github/workflows/pypi-publish.yaml new file mode 100644 index 0000000..0028790 --- /dev/null +++ b/.github/workflows/pypi-publish.yaml @@ -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