From 243d49b0210fe291a39f785b05f895628be05002 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Tue, 14 Dec 2021 16:39:42 +0200 Subject: [PATCH] Install Twine to upload to PyPI --- .github/workflows/deploy.yml | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c8e08d6..7aad488 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -24,10 +24,17 @@ jobs: steps: - uses: actions/checkout@v2 - run: git fetch --prune --unshallow - - uses: actions/setup-python@v2 - - name: Install cibuildwheel - run: python -m pip install cibuildwheel==2.3.0 + - name: Set up Python + uses: actions/setup-python@v2 + with: + cache: pip + cache-dependency-path: ".github/workflows/deploy.yml" + + - name: Install dependencies + run: | + python -m pip install cibuildwheel==2.3.0 + python -m pip install -U twine - name: Build wheels run: python -m cibuildwheel --output-dir dist @@ -83,10 +90,17 @@ jobs: steps: - uses: actions/checkout@v2 - run: git fetch --prune --unshallow - - uses: actions/setup-python@v2 - - name: Install cibuildwheel - run: python -m pip install cibuildwheel==2.3.0 + - name: Set up Python + uses: actions/setup-python@v2 + with: + cache: pip + cache-dependency-path: ".github/workflows/deploy.yml" + + - name: Install dependencies + run: | + python -m pip install cibuildwheel==2.3.0 + python -m pip install -U twine # https://github.com/docker/setup-qemu-action - name: Set up QEMU