Skip to content

Commit

Permalink
fix pypi-publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
giancastro committed Apr 28, 2021
1 parent a4ae77f commit 281d6d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
- name: Get release version
run: |
echo "CHANGELOG_VERSION=$(cat CHANGELOG.md | grep -oP '(?<=###\s)(.*)(?=\s\-)' | head -n 1 | sed 's/Version\s/v/')" >> $GITHUB_ENV
echo "PUBLISH_VERSION=$(cat CHANGELOG.md | grep -oP '(?<=###\s)(.*)(?=\s\-)' | head -n 1 | sed 's/Version\s//')" >> $GITHUB_ENV
echo "CONDA_VERSION=$(cat conda.recipe/meta.yaml | grep -oP '(version\:.*)' | head -n 1 | sed 's/version\:\s/v/')" >> $GITHUB_ENV
echo "TAG_VERSION=`echo $(git describe --tags --abbrev=0)`" >> $GITHUB_ENV
- name: Check changelog release version
Expand All @@ -33,6 +34,9 @@ jobs:
pip install pyct \
wheel \
setuptools
- name: Update publish version
run: |
sed -i "/name='.*',/a \ \ version='$PUBLISH_VERSION'," setup.py
- name: Build package
run: |
python setup.py sdist bdist_wheel
Expand Down

0 comments on commit 281d6d8

Please sign in to comment.