53
53
steps :
54
54
- uses : actions/checkout@v2
55
55
- name : Set up Python ${{matrix.py_ver}}
56
- uses : actions/setup-python@v2
56
+ uses : actions/setup-python@v4
57
57
with :
58
58
python-version : ${{matrix.py_ver}}
59
59
- name : Install dependencies
@@ -124,10 +124,18 @@ jobs:
124
124
release_upload_url : ${{steps.create_gh_release.outputs.upload_url}}
125
125
steps :
126
126
- uses : actions/checkout@v2
127
+ - name : Set up Python ${{matrix.py_ver}}
128
+ uses : actions/setup-python@v4
129
+ with :
130
+ python-version : ${{matrix.py_ver}}
127
131
- name : Determine package version
128
132
run : |
129
133
DJ_VERSION=$(grep -oP '\d+\.\d+\.\d+' datajoint/version.py)
134
+ RELEASE_BODY=$(python -c \
135
+ 'print(open("./CHANGELOG.md").read().split("\n\n")[1].split("\n", 1)[1])' \
136
+ )
130
137
echo "DJ_VERSION=${DJ_VERSION}" >> $GITHUB_ENV
138
+ echo "RELEASE_BODY=${RELEASE_BODY}" >> $GITHUB_ENV
131
139
- name : Create GH release
132
140
id : create_gh_release
133
141
uses : actions/create-release@v1
@@ -136,7 +144,7 @@ jobs:
136
144
with :
137
145
tag_name : ${{env.DJ_VERSION}}
138
146
release_name : Release ${{env.DJ_VERSION}}
139
- body : " "
147
+ body : ${{env.RELEASE_BODY}}
140
148
prerelease : false
141
149
draft : false
142
150
- name : Fetch pip artifacts
0 commit comments