From 21b406a9b9d875e1bc5fe1de60993559eccf5d85 Mon Sep 17 00:00:00 2001 From: Nicolas Patry Date: Fri, 23 Sep 2022 00:18:13 +0200 Subject: [PATCH] Add license, focus on conda. --- .github/workflows/python-release-extra.yml | 62 +++++++++++----------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/.github/workflows/python-release-extra.yml b/.github/workflows/python-release-extra.yml index 092edf8..bca9740 100644 --- a/.github/workflows/python-release-extra.yml +++ b/.github/workflows/python-release-extra.yml @@ -2,8 +2,8 @@ name: Python Release extra on: push: - # tags: - # - python-v* + tags: + - python-v* env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} @@ -89,32 +89,32 @@ jobs: --rm -v `pwd`/../..:/io quay.io/pypa/manylinux2014_s390x \ /bin/bash -c "yum install -y openssl-devel && cd /io/bindings/python; sh build-wheels.sh" - # upload_package: - # name: Upload package to PyPi - # runs-on: ubuntu-latest - # needs: - # - create_wheels_manylinux_2014_ppc64le - # - create_wheels_manylinux_2014_aarch64 - # - create_wheels_manylinux_2014_x390x - - # steps: - # - uses: actions/checkout@v2 - - # - name: Install Python - # uses: actions/setup-python@v1 - - # - name: Retrieve all wheels - # shell: bash - # run: | - # pip install awscli - # aws s3 sync "s3://safetensors-releases/python/$DIST_DIR" ./bindings/python/dist - - # - name: Install dependencies - # run: | - # pip install setuptools wheel setuptools-rust - - # - name: Upload to PyPi - # working-directory: ./bindings/python - # run: | - # pip install twine - # twine upload dist/* -u __token__ -p "$PYPI_TOKEN" + upload_package: + name: Upload package to PyPi + runs-on: ubuntu-latest + needs: + - create_wheels_manylinux_2014_ppc64le + - create_wheels_manylinux_2014_aarch64 + - create_wheels_manylinux_2014_x390x + + steps: + - uses: actions/checkout@v2 + + - name: Install Python + uses: actions/setup-python@v1 + + - name: Retrieve all wheels + shell: bash + run: | + pip install awscli + aws s3 sync "s3://safetensors-releases/python/$DIST_DIR" ./bindings/python/dist + + - name: Install dependencies + run: | + pip install setuptools wheel setuptools-rust + + - name: Upload to PyPi + working-directory: ./bindings/python + run: | + pip install twine + twine upload dist/* -u __token__ -p "$PYPI_TOKEN" -- 2.43.0