1- name : WePush Next Public Preview Release
1+ name : WePush Next Release
22
33on :
44 push :
9595 set -euo pipefail
9696 sha256sum --check *.sha256
9797 tar_listing=$(tar -tzf "wepush-next-${{ steps.metadata.outputs.version }}.tar.gz")
98- grep -Eq '^wepush-next-[^/]+/PREVIEW-NOTICE.md$' <<< "$tar_listing"
98+ grep -Eq '^wepush-next-[^/]+/UNSIGNED-NOTICE.md$' <<< "$tar_listing"
99+ grep -Eq '^wepush-next-[^/]+/docs/compatibility-policy.md$' <<< "$tar_listing"
100+ grep -Eq '^wepush-next-[^/]+/docs/upgrade-guide.md$' <<< "$tar_listing"
99101 grep -Eq '^wepush-next-[^/]+/docs/user-guide.md$' <<< "$tar_listing"
100102 grep -Eq '^wepush-next-[^/]+/sdk/embedded-java-[^/]+\.jar$' <<< "$tar_listing"
101103 grep -Eq '^wepush-next-[^/]+/sdk/provider-standard-[^/]+\.jar$' <<< "$tar_listing"
@@ -134,7 +136,7 @@ jobs:
134136 cp next/sdk/embedded-java/pom.xml "$sdk_name/embedded-java-$VERSION.pom"
135137 cp next/sdk/embedded-java/target/embedded-java-$VERSION.jar "$sdk_name/"
136138 cp next/service/service-api/src/main/resources/openapi/openapi.yaml "$sdk_name/"
137- cp LICENSE.txt next/PREVIEW -NOTICE.md next/SECURITY.md next/THIRD-PARTY-NOTICES.md "$sdk_name/"
139+ cp LICENSE.txt next/UNSIGNED -NOTICE.md next/SECURITY.md next/THIRD-PARTY-NOTICES.md "$sdk_name/"
138140 zip -qr "release-assets/$sdk_name.zip" "$sdk_name"
139141 - name : Generate CycloneDX SBOM
140142 uses : anchore/sbom-action@e22c389904149dbc22b58101806040fa8d37a610
@@ -201,7 +203,7 @@ jobs:
201203 name="wepush-next-desktop-$VERSION-linux-$ARCH"
202204 mkdir -p "release-assets" "$name"
203205 cp -a next/ui/apps/desktop/release/linux-unpacked "$name/WePush Next"
204- cp LICENSE.txt next/PREVIEW -NOTICE.md next/SECURITY.md next/THIRD-PARTY-NOTICES.md "$name/"
206+ cp LICENSE.txt next/UNSIGNED -NOTICE.md next/SECURITY.md next/THIRD-PARTY-NOTICES.md "$name/"
205207 tar -czf "release-assets/$name.tar.gz" "$name"
206208 - name : Verify macOS package and stage archive
207209 if : runner.os == 'macOS'
@@ -220,7 +222,7 @@ jobs:
220222 name="wepush-next-desktop-$VERSION-macos-$ARCH"
221223 mkdir -p "release-assets" "$name"
222224 cp -R 'next/ui/apps/desktop/release/WePush Next.app' "$name/"
223- cp LICENSE.txt next/PREVIEW -NOTICE.md next/SECURITY.md next/THIRD-PARTY-NOTICES.md "$name/"
225+ cp LICENSE.txt next/UNSIGNED -NOTICE.md next/SECURITY.md next/THIRD-PARTY-NOTICES.md "$name/"
224226 ditto -c -k --sequesterRsrc --keepParent "$name" "release-assets/$name.zip"
225227 - name : Verify Windows package and stage archive
226228 if : runner.os == 'Windows'
@@ -242,7 +244,7 @@ jobs:
242244 $name = "wepush-next-desktop-$env:VERSION-windows-$env:ARCH"
243245 New-Item -ItemType Directory -Force -Path release-assets, $name | Out-Null
244246 Copy-Item next/ui/apps/desktop/release/win-unpacked "$name/WePush Next" -Recurse
245- Copy-Item LICENSE.txt,next/PREVIEW -NOTICE.md,next/SECURITY.md,next/THIRD-PARTY-NOTICES.md $name
247+ Copy-Item LICENSE.txt,next/UNSIGNED -NOTICE.md,next/SECURITY.md,next/THIRD-PARTY-NOTICES.md $name
246248 Compress-Archive -Path $name -DestinationPath "release-assets/$name.zip"
247249 - uses : actions/upload-artifact@v4
248250 with :
@@ -318,7 +320,7 @@ jobs:
318320 retention-days : 30
319321
320322 publish :
321- name : Publish GitHub Pre-release
323+ name : Publish GitHub Release
322324 needs : [distribution, desktop, runtime]
323325 runs-on : ubuntu-latest
324326 permissions :
@@ -338,7 +340,7 @@ jobs:
338340 find . -maxdepth 1 -type f ! -name SHA256SUMS -print0 |
339341 sort -z | xargs -0 sha256sum | sed 's# \./# #' > SHA256SUMS
340342 sha256sum --check SHA256SUMS
341- - name : Publish unsigned public preview
343+ - name : Publish unsigned release
342344 env :
343345 GH_TOKEN : ${{ github.token }}
344346 shell : bash
@@ -347,10 +349,16 @@ jobs:
347349 version=${GITHUB_REF_NAME#next-v}
348350 notes="next/docs/releases/$version.md"
349351 test -s "$notes"
352+ title="WePush Next $version"
353+ release_flags=()
354+ if [[ "$version" == *-* ]]; then
355+ title="$title (Public Preview)"
356+ release_flags+=(--prerelease)
357+ fi
350358 gh release create "$GITHUB_REF_NAME" \
351359 --repo "$GITHUB_REPOSITORY" \
352360 --verify-tag \
353- --prerelease \
354- --title "WePush Next $version (Public Preview) " \
361+ "${release_flags[@]}" \
362+ --title "$title " \
355363 --notes-file "$notes" \
356364 release-assets/*
0 commit comments