File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,14 @@ jobs:
25
25
- name : Build
26
26
run : |
27
27
python -m build
28
+ pip install -e .
29
+ - name : Get version number
30
+ id : get_version
31
+ run : echo "VERSION=$(python3 -c 'import pyrolab; print(pyrolab.__version__)')" >> $GITHUB_ENV
28
32
- name : Load Release text
29
33
id : get_text
30
34
run : |
31
- BODY=$(cat ./docs/changelog/${{ github.ref_name }}-changelog.md)
35
+ BODY=$(cat ./docs/changelog/${{ env.VERSION }}-changelog.md)
32
36
BODY="${BODY//'%'/'%25'}"
33
37
BODY="${BODY//$'\n'/'%0A'}"
34
38
BODY="${BODY//$'\r'/'%0D'}"
45
49
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
46
50
with :
47
51
tag_name : ${{ github.ref }}
48
- release_name : PyroLab ${{ steps.get_version.outputs .VERSION }}
49
- body : ${{ steps.get_text.outputs .BODY }}
52
+ release_name : PyroLab ${{ env .VERSION }}
53
+ body : ${{ env .BODY }}
50
54
draft : false
51
55
prerelease : false
You can’t perform that action at this time.
0 commit comments