build: fix draft/published status for new releases
Signed-off-by: Jakob Borg <jakob@kastelo.net>
This commit is contained in:
@@ -920,6 +920,7 @@ jobs:
|
|||||||
packages/syncthing-*.tar.gz \
|
packages/syncthing-*.tar.gz \
|
||||||
packages/syncthing-*.zip \
|
packages/syncthing-*.zip \
|
||||||
packages/syncthing_*.deb
|
packages/syncthing_*.deb
|
||||||
|
gh release edit "$VERSION" --draft=false
|
||||||
|
|
||||||
PKGS=$(pwd)/packages
|
PKGS=$(pwd)/packages
|
||||||
cd /tmp # gh will not release for repo x while inside repo y
|
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
|
if ! gh release view --json name "$VERSION" >/dev/null 2>&1 ; then
|
||||||
gh release create "$VERSION" \
|
gh release create "$VERSION" \
|
||||||
$maybePrerelease \
|
$maybePrerelease \
|
||||||
|
--draft \
|
||||||
--title "$VERSION" \
|
--title "$VERSION" \
|
||||||
--notes "https://github.com/syncthing/syncthing/releases/tag/$VERSION"
|
--notes "https://github.com/syncthing/syncthing/releases/tag/$VERSION"
|
||||||
fi
|
fi
|
||||||
gh release upload --clobber "$VERSION" \
|
gh release upload --clobber "$VERSION" \
|
||||||
$PKGS/*.asc \
|
$PKGS/*.asc \
|
||||||
$PKGS/*${repo}*
|
$PKGS/*${repo}*
|
||||||
|
gh release edit "$VERSION" --draft=false
|
||||||
done
|
done
|
||||||
|
|
||||||
gh release edit "$VERSION" --draft=false
|
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.ACTIONS_GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.ACTIONS_GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user