Skip to content

Commit

Permalink
Store CEA version as environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
reyery authored Feb 6, 2024
1 parent 57cca80 commit c933e20
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/setup_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c933e20

Please sign in to comment.