From 50f12eecc3e82e5f32c809b022ef001a4e774340 Mon Sep 17 00:00:00 2001 From: Vadim Yakshigulov Date: Thu, 22 Feb 2024 20:44:49 +0300 Subject: [PATCH] chore: change publishing method --- .github/workflows/release.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7803847..7dec819 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,6 +12,11 @@ jobs: python-version: [3.11] poetry-version: [1.7.1] os: [ubuntu-latest] + environment: + name: pypi + url: https://pypi.org/p/desbordante-stubs + permissions: + id-token: write runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 @@ -22,9 +27,9 @@ jobs: uses: abatilo/actions-poetry@v3 with: poetry-version: ${{ matrix.poetry-version }} + - name: Builc + poetry build - name: Publish - env: - PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} - run: | - poetry config pypi-token.pypi $PYPI_TOKEN - poetry publish --build + uses: pypa/gh-action-pypi-publish@release/v1 + with: + packages-dir: dist/ \ No newline at end of file