Skip to content

Commit

Permalink
Fix env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
AustP committed Jul 15, 2021
1 parent 34d999e commit 9cd2d42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ jobs:
python setup.py sdist bdist_wheel
- name: Get version number
id: get_version
run: echo ::set-env name=VERSION::$(python3 -c "import simphony; print(simphony.__version__)")
run: echo "VERSION=$(python3 -c "import simphony; print(simphony.__version__)")" >> $GITHUB_ENV
- name: Load Release text
run: |
BODY=$(cat ./docs/changelog/${{ env.VERSION }}-changelog.md)
BODY="${BODY//'%'/'%25'}"
BODY="${BODY//$'\n'/'%0A'}"
BODY="${BODY//$'\r'/'%0D'}"
echo "::set-env name=BODY::$BODY"
echo "BODY=$BODY" >> $GITHUB_ENV
- name: Publish to PyPI
uses: pypa/[email protected]
with:
Expand Down

0 comments on commit 9cd2d42

Please sign in to comment.