From e1461fa578bc1967e2e23761b38f5dfd50bfa602 Mon Sep 17 00:00:00 2001 From: Samuel Colvin Date: Tue, 22 Mar 2022 22:18:21 +0000 Subject: [PATCH] fix set_version for windows --- .github/workflows/ci.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4e065568..0cc593ac 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -160,6 +160,14 @@ jobs: toolchain: stable override: true + - run: curl -Lso set_version.py https://git.io/JT3rm + if: "startsWith(github.ref, 'refs/tags/')" + + - run: python set_version.py + if: "startsWith(github.ref, 'refs/tags/')" + env: + VERSION_PATH: watchgod/version.py + - run: rustup target add aarch64-apple-darwin if: matrix.os == 'macos' @@ -168,10 +176,6 @@ jobs: - run: pip install -U setuptools wheel twine cibuildwheel - - name: set version with tag - if: "startsWith(github.ref, 'refs/tags/')" - run: VERSION_PATH='watchgod/version.py' python <(curl -Ls https://git.io/JT3rm) - - name: build sdist if: matrix.os == 'ubuntu' && matrix.python-version == '9' run: python setup.py sdist