From 44d108aac9d4976265e4efd2c9066284dbdf479d Mon Sep 17 00:00:00 2001 From: Krishna Kumar Date: Fri, 27 Oct 2023 18:15:35 -0500 Subject: [PATCH] Test trusted publishing to PyPI --- .github/workflows/pypi.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 1c3bda6..b9ea683 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -1,8 +1,5 @@ name: Publish to PyPI -on: - push: - tags: - - 'v[0-9]+.[0-9]+.[0-9]+' +on: [push] jobs: pypi-publish: name: Upload release to PyPI @@ -13,7 +10,13 @@ jobs: permissions: id-token: write # IMPORTANT: this permission is mandatory for trusted publishing steps: - # retrieve your distributions here - - - name: Publish package distributions to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: 3.9 + - name: Install the project dependencies + run: poetry install + - name: Build package + run: poetry build + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file