From 0dacdfcddc30cc4ceaf02e5becc0c3c6b71dd187 Mon Sep 17 00:00:00 2001 From: Peter Gorniak Date: Wed, 20 Mar 2024 18:02:27 -0700 Subject: [PATCH] try new way --- .github/workflows/publish.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2f9464c6..969b7f3a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,6 +7,11 @@ on: jobs: deploy: runs-on: ubuntu-latest + environment: + name: publish + url: https://pypi.org/p/domdiv + permissions: + id-token: write steps: - uses: actions/checkout@v2 - name: Set up Python @@ -17,10 +22,5 @@ jobs: run: | python -m pip install --upgrade pip pip install -e .[dev] - - name: Build and publish - env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: | - python -m build -w -s - twine upload dist/* + - name: Publish + uses: pypa/gh-action-pypi-publish@release/v1