Skip to content

Commit 94a5eee

Browse files
committed
Update the release workflows to copy the release notes out of readme.txt to add to the github release
1 parent 8a52056 commit 94a5eee

1 file changed

Lines changed: 22 additions & 5 deletions

File tree

.github/workflows/Ubuntu_Window_Release.yml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: Create Ubuntu and Window Releases
22

3-
on:
3+
on:
44
push:
55
tags:
66
- '*'
7-
7+
88
workflow_dispatch:
99
jobs:
1010
build-linux:
@@ -14,6 +14,21 @@ jobs:
1414
- uses: actions/checkout@v2
1515
with:
1616
submodules: 'true'
17+
18+
- name: Extract release notes
19+
id: release_notes
20+
run: |
21+
TAG="${GITHUB_REF_NAME}"
22+
NOTES=$(awk -v ver="$TAG" '
23+
/^[0-9]{4}\.[0-9]{2}/ { if (found) exit; if ($1 == ver) found=1 }
24+
found { print }
25+
' README.txt)
26+
{
27+
echo "notes<<RELEASE_NOTES_EOF"
28+
echo "$NOTES"
29+
echo "RELEASE_NOTES_EOF"
30+
} >> "$GITHUB_OUTPUT"
31+
1732
- run: docker pull ghcr.io/xlightssequencer/xlights-build-docker:master
1833
- run: docker run --name buildvm ghcr.io/xlightssequencer/xlights-build-docker:master /bin/bash Recipe.appimage
1934
- run: 'docker cp buildvm:/xLights/xLights/AppImage/ /tmp/'
@@ -23,8 +38,9 @@ jobs:
2338
with:
2439
allowUpdates: true
2540
artifacts: "/tmp/AppImage/*.AppImage"
41+
body: ${{ steps.release_notes.outputs.notes }}
2642
token: ${{ secrets.GITHUB_TOKEN }}
27-
43+
2844
build-windows:
2945
runs-on: windows-2022
3046

@@ -43,7 +59,7 @@ jobs:
4359
version: 1.30.0
4460

4561
- name: Download wxWidgets
46-
run:
62+
run:
4763
git clone --depth=1 --shallow-submodules --recurse-submodules -b xlights_2026.04 https://github.com/xLightsSequencer/wxWidgets ..\wxWidgets\
4864

4965
- name: Build wxWidgets
@@ -58,10 +74,11 @@ jobs:
5874
- name: Build Installer
5975
working-directory: build_scripts\msw
6076
run: ISCC.exe xLights_4_64bit_VS.iss
61-
77+
6278
- uses: ncipollo/release-action@v1
6379
with:
6480
allowUpdates: true
81+
omitBodyDuringUpdate: true
6582
artifacts: 'build_scripts\msw\output\*'
6683
token: ${{ secrets.GITHUB_TOKEN }}
6784

0 commit comments

Comments
 (0)