File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 15
15
- name : Get release version
16
16
run : |
17
17
echo "CHANGELOG_VERSION=$(cat CHANGELOG.md | grep -oP '(?<=###\s)(.*)(?=\s\-)' | head -n 1 | sed 's/Version\s/v/')" >> $GITHUB_ENV
18
+ echo "PUBLISH_VERSION=$(cat CHANGELOG.md | grep -oP '(?<=###\s)(.*)(?=\s\-)' | head -n 1 | sed 's/Version\s//')" >> $GITHUB_ENV
18
19
echo "CONDA_VERSION=$(cat conda.recipe/meta.yaml | grep -oP '(version\:.*)' | head -n 1 | sed 's/version\:\s/v/')" >> $GITHUB_ENV
19
20
echo "TAG_VERSION=`echo $(git describe --tags --abbrev=0)`" >> $GITHUB_ENV
20
21
- name : Check changelog release version
33
34
pip install pyct \
34
35
wheel \
35
36
setuptools
37
+ - name : Update publish version
38
+ run : |
39
+ sed -i "/name='.*',/a \ \ version='$PUBLISH_VERSION'," setup.py
36
40
- name : Build package
37
41
run : |
38
42
python setup.py sdist bdist_wheel
You can’t perform that action at this time.
0 commit comments