From df7b655c84779f599ad80f9344a98b040176e7ed Mon Sep 17 00:00:00 2001 From: blancadesal Date: Sun, 11 Feb 2024 12:03:30 +0100 Subject: [PATCH] update gh release action --- .github/workflows/release.yml | 31 ++++++------------------------- 1 file changed, 6 insertions(+), 25 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d19230d..59ab8d8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,31 +3,12 @@ on: release: types: [created] jobs: - build-n-publish: - name: Build and publish Python 🐍 distributions 📦 to PyPI + build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Set up Python 3.9 - uses: actions/setup-python@v2 + - uses: actions/checkout@v4 + - name: Build and publish to pypi + uses: JRubics/poetry-publish@v2.0 with: - python-version: 3.9 - - name: Install pypa/build - run: >- - python -m - pip install - build - --user - - name: Build a binary wheel and a source tarball - run: >- - python -m - build - --sdist - --wheel - --outdir dist/ - . - - name: Publish distribution 📦 to PyPI - if: startsWith(github.ref, 'refs/tags') - uses: pypa/gh-action-pypi-publish@master - with: - password: ${{ secrets.PYPI_API_TOKEN }} + python_version: "3.9.17" + pypi_token: ${{ secrets.PYPI_API_TOKEN }}