From 59ad49cc3e11d165624423069a3435ee5c422d30 Mon Sep 17 00:00:00 2001 From: wulan17 Date: Thu, 8 Aug 2024 17:33:38 +0700 Subject: [PATCH] tgcrypto: Release to pypi Signed-off-by: wulan17 --- .circleci/config.yml | 2 +- .github/workflows/wheels.yml | 34 +++++++++------------------------- 2 files changed, 10 insertions(+), 26 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e02cbff..cc82762 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -26,7 +26,7 @@ jobs: python3 -m cibuildwheel . - run: - name: upload + name: Release to pypi command: | python3 -m twine upload wheelhouse/*.whl diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 4eaa689..b38ed3f 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -8,18 +8,18 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, windows-latest, macos-latest] + os: [macos-latest] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-python@v5 - name: Install cibuildwheel - run: python -m pip install cibuildwheel + run: pip install cibuildwheel twine - name: Build wheels - run: python -m cibuildwheel --output-dir wheelhouse + run: cibuildwheel --output-dir wheelhouse env: CIBW_ARCHS_MACOS: "x86_64 universal2 arm64" CIBW_TEST_REQUIRES: tox @@ -27,24 +27,8 @@ jobs: CIBW_TEST_SKIP: "*-win*" CIBW_BUILD_VERBOSITY: 1 - - name: Store wheels - uses: actions/upload-artifact@v2 - with: - path: ./wheelhouse/*.whl - - build_source: - name: Build source distribution - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - - uses: actions/setup-python@v5 - - - name: Build source distribution - run: python setup.py sdist - - - name: Store source distribution - uses: actions/upload-artifact@v2 - with: - path: ./dist/*.tar.gz + - name: Release to pypi + run: twine upload wheelhouse/*.whl + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}