Skip to content

Commit cc25a04

Browse files
authored
Does installing it help?
1 parent b7f64b2 commit cc25a04

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,14 @@ jobs:
2525
- name: Build
2626
run: |
2727
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
2832
- name: Load Release text
2933
id: get_text
3034
run: |
31-
BODY=$(cat ./docs/changelog/${{ github.ref_name }}-changelog.md)
35+
BODY=$(cat ./docs/changelog/${{ env.VERSION }}-changelog.md)
3236
BODY="${BODY//'%'/'%25'}"
3337
BODY="${BODY//$'\n'/'%0A'}"
3438
BODY="${BODY//$'\r'/'%0D'}"
@@ -45,7 +49,7 @@ jobs:
4549
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
4650
with:
4751
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 }}
5054
draft: false
5155
prerelease: false

0 commit comments

Comments
 (0)