build: also create relaysrv and discosrv releases

This commit is contained in:
Jakob Borg
2025-06-05 19:19:05 +02:00
parent 21da0d7890
commit 67ba20d777
+19 -5
View File
@@ -787,7 +787,7 @@ jobs:
with: with:
args: sync -v objstore:release/${{ env.VERSION }} objstore:release/latest args: sync -v objstore:release/${{ env.VERSION }} objstore:release/latest
- name: Create GitHub release and push binaries - name: Create GitHub releases and push binaries
run: | run: |
maybePrerelease="" maybePrerelease=""
if [[ $VERSION == *-* ]]; then if [[ $VERSION == *-* ]]; then
@@ -795,8 +795,7 @@ jobs:
fi fi
export GH_PROMPT_DISABLED=1 export GH_PROMPT_DISABLED=1
if ! gh release view --json name "$VERSION" >/dev/null 2>&1 ; then if ! gh release view --json name "$VERSION" >/dev/null 2>&1 ; then
gh release create \ gh release create "$VERSION" \
"$VERSION" \
$maybePrerelease \ $maybePrerelease \
--title "$VERSION" \ --title "$VERSION" \
--notes-from-tag --notes-from-tag
@@ -805,9 +804,24 @@ jobs:
packages/*.asc packages/*.json \ packages/*.asc packages/*.json \
packages/syncthing-*.tar.gz \ packages/syncthing-*.tar.gz \
packages/syncthing-*.zip \ packages/syncthing-*.zip \
packages/syncthing*.deb packages/syncthing_*.deb
PKGS=$(pwd)/packages
cd /tmp # gh will not release for repo x while inside repo y
for repo in relaysrv discosrv ; do
export GH_REPO="syncthing/$repo"
if ! gh release view --json name "$VERSION" >/dev/null 2>&1 ; then
gh release create "$VERSION" \
$maybePrerelease \
--title "$VERSION" \
--notes "https://github.com/syncthing/syncthing/releases/tag/$VERSION"
fi
gh release upload "$VERSION" \
$PKGS/*.asc \
$PKGS/*${repo}*
done
env: env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.ACTIONS_GITHUB_TOKEN }}
# #
# Push Debian/APT archive # Push Debian/APT archive