diff --git a/.github/workflows/setup_build.yml b/.github/workflows/setup_build.yml index 60cf6b7e35..1d16544dce 100644 --- a/.github/workflows/setup_build.yml +++ b/.github/workflows/setup_build.yml @@ -21,10 +21,13 @@ jobs: shell: bash run: pip install . + - name: Get CEA version + shell: bash + run: echo "CEA_VERSION=$(python -c "import cea; print(cea.__version__)")" >> "$GITHUB_ENV" + - name: Create sdist of CEA shell: bash run: | - CEA_VERSION=$(python -c "import cea; print(cea.__version__)") python -m pip install build python -m build mv dist/cityenergyanalyst-$CEA_VERSION.tar.gz setup/cityenergyanalyst.tar.gz