Skip to content

Commit 2516517

Browse files
committed
Update release changelog creation in ci, upload installers without zipping.
1 parent 12b7aa5 commit 2516517

File tree

1 file changed

+26
-12
lines changed

1 file changed

+26
-12
lines changed

.github/workflows/workflow.yml

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -204,16 +204,28 @@ jobs:
204204
- name: Create changelog
205205
id: changelog
206206
run: |
207-
commitlist="$(git log --pretty=format:"* %H %s" $(git describe --tags --abbrev=0 @^)..@)"
208-
commitlist="${commitlist//'%'/'%25'}"
209-
commitlist="${commitlist//$'\n'/'%0A'}"
210-
commitlist="${commitlist//$'\r'/'%0D'}"
211-
echo "::set-output name=body::$commitlist"
207+
body_text="$(git log --pretty=format:"* %H %s" $(git describe --tags --abbrev=0 @^)..@)"
208+
num_lines="$(echo "$body_text" | wc -l)"
209+
210+
if [ "$num_lines" -gt "10" ]
211+
then
212+
body_text="$(echo "$body_text" | sed '10a<details><summary><b>See More</b></summary>\n')"
213+
body_text="$(echo "$body_text" | sed '$a\\n</details>')"
214+
fi
215+
216+
body_text="$(echo "$body_text" | sed '1i## Changes:\n')"
217+
218+
body_text="${body_text//'%'/'%25'}"
219+
body_text="${body_text//$'\n'/'%0A'}"
220+
body_text="${body_text//$'\r'/'%0D'}"
221+
echo "::set-output name=body::$body_text"
212222
- name: Download all build artifacts
213223
uses: actions/download-artifact@v2
214-
- name: Zip artifacts
224+
- name: Prepare artifacts
215225
run: |
216-
for artifact_dir in $(find $PWD/* -maxdepth 0 -type d -name "boundingboxeditor*")
226+
mv boundingboxeditor-installer-*/* .
227+
228+
for artifact_dir in $(find $PWD/* -maxdepth 0 -type d -name "boundingboxeditor-portable-*")
217229
do
218230
cd $artifact_dir
219231
zip -r $artifact_dir *
@@ -223,8 +235,10 @@ jobs:
223235
env:
224236
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
225237
with:
226-
body: |
227-
## Changes:
228-
229-
${{ steps.changelog.outputs.body }}
230-
files: boundingboxeditor*.zip
238+
body: ${{ steps.changelog.outputs.body }}
239+
files: |
240+
boundingboxeditor*.exe
241+
boundingboxeditor*.deb
242+
boundingboxeditor*.rpm
243+
boundingboxeditor*.dmg
244+
boundingboxeditor-portable-*.zip

0 commit comments

Comments
 (0)