From ed3b17ff76a09813ab28a782b69bc4714f74c2f3 Mon Sep 17 00:00:00 2001 From: Carson Date: Wed, 11 Dec 2024 16:23:09 -0600 Subject: [PATCH] Use classic PyPI deployment strategy --- .github/workflows/{py-release.yml => release.yml} | 12 ++++-------- .github/workflows/{py-test.yml => test.yml} | 0 2 files changed, 4 insertions(+), 8 deletions(-) rename .github/workflows/{py-release.yml => release.yml} (86%) rename .github/workflows/{py-test.yml => test.yml} (100%) diff --git a/.github/workflows/py-release.yml b/.github/workflows/release.yml similarity index 86% rename from .github/workflows/py-release.yml rename to .github/workflows/release.yml index ce398ed..82e1e8b 100644 --- a/.github/workflows/py-release.yml +++ b/.github/workflows/release.yml @@ -9,20 +9,13 @@ env: PYTHON_VERSION: 3.13 jobs: - py-release: + pypi-release: name: Build and release Python package runs-on: ubuntu-latest # Python release tags start with "py/v*" if: startsWith(github.ref, 'refs/tags/py/v') - environment: - name: pypi - url: https://pypi.org/project/chatlas/ - - permissions: # for trusted publishing - id-token: write - steps: - uses: actions/checkout@v4 @@ -51,3 +44,6 @@ jobs: - name: 🚢 Publish release on PyPI uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/.github/workflows/py-test.yml b/.github/workflows/test.yml similarity index 100% rename from .github/workflows/py-test.yml rename to .github/workflows/test.yml