From 658ea620525fe0c298013ace21d7ffe7cc34bd38 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Sat, 9 May 2026 13:51:17 +0200 Subject: [PATCH] build: fix draft/published status for new releases Signed-off-by: Jakob Borg --- .github/workflows/build-syncthing.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-syncthing.yaml b/.github/workflows/build-syncthing.yaml index 8b0cd8dd6..41bb049fd 100644 --- a/.github/workflows/build-syncthing.yaml +++ b/.github/workflows/build-syncthing.yaml @@ -920,6 +920,7 @@ jobs: packages/syncthing-*.tar.gz \ packages/syncthing-*.zip \ packages/syncthing_*.deb + gh release edit "$VERSION" --draft=false PKGS=$(pwd)/packages cd /tmp # gh will not release for repo x while inside repo y @@ -928,15 +929,15 @@ jobs: if ! gh release view --json name "$VERSION" >/dev/null 2>&1 ; then gh release create "$VERSION" \ $maybePrerelease \ + --draft \ --title "$VERSION" \ --notes "https://github.com/syncthing/syncthing/releases/tag/$VERSION" fi gh release upload --clobber "$VERSION" \ $PKGS/*.asc \ $PKGS/*${repo}* + gh release edit "$VERSION" --draft=false done - - gh release edit "$VERSION" --draft=false env: GH_TOKEN: ${{ secrets.ACTIONS_GITHUB_TOKEN }}