mirror of
https://github.com/zadam/trilium.git
synced 2025-01-29 02:18:18 +08:00
use official gh
client instead of github-release
to execute releases
This commit is contained in:
parent
a53a65be1f
commit
7b5d44a329
3 changed files with 14 additions and 42 deletions
|
@ -2,6 +2,5 @@
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="VcsDirectoryMappings">
|
<component name="VcsDirectoryMappings">
|
||||||
<mapping directory="" vcs="Git" />
|
<mapping directory="" vcs="Git" />
|
||||||
<mapping directory="$PROJECT_DIR$/../.." vcs="Git" />
|
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -55,47 +55,20 @@ echo "Creating release in GitHub"
|
||||||
EXTRA=
|
EXTRA=
|
||||||
|
|
||||||
if [[ $TAG == *"beta"* ]]; then
|
if [[ $TAG == *"beta"* ]]; then
|
||||||
EXTRA=--pre-release
|
EXTRA=--prerelease
|
||||||
fi
|
fi
|
||||||
|
|
||||||
github-release release \
|
echo "$GITHUB_CLI_AUTH_TOKEN" | gh auth login --with-token
|
||||||
--tag $TAG \
|
|
||||||
--name "$TAG release" $EXTRA
|
|
||||||
|
|
||||||
echo "Uploading debian x64 package"
|
gh release create "$TAG" \
|
||||||
|
--title "$TAG release" \
|
||||||
github-release upload \
|
--notes ""
|
||||||
--tag $TAG \
|
$EXTRA \
|
||||||
--name "$DEBIAN_X64_BUILD" \
|
"dist/$DEBIAN_X64_BUILD" \
|
||||||
--file "dist/$DEBIAN_X64_BUILD"
|
"dist/$LINUX_X64_BUILD" \
|
||||||
|
"dist/$WINDOWS_X64_BUILD" \
|
||||||
echo "Uploading linux x64 build"
|
"dist/$MAC_X64_BUILD" \
|
||||||
|
"dist/$SERVER_BUILD"
|
||||||
github-release upload \
|
|
||||||
--tag $TAG \
|
|
||||||
--name "$LINUX_X64_BUILD" \
|
|
||||||
--file "dist/$LINUX_X64_BUILD"
|
|
||||||
|
|
||||||
echo "Uploading windows x64 build"
|
|
||||||
|
|
||||||
github-release upload \
|
|
||||||
--tag $TAG \
|
|
||||||
--name "$WINDOWS_X64_BUILD" \
|
|
||||||
--file "dist/$WINDOWS_X64_BUILD"
|
|
||||||
|
|
||||||
echo "Uploading mac x64 build"
|
|
||||||
|
|
||||||
github-release upload \
|
|
||||||
--tag $TAG \
|
|
||||||
--name "$MAC_X64_BUILD" \
|
|
||||||
--file "dist/$MAC_X64_BUILD"
|
|
||||||
|
|
||||||
echo "Uploading linux x64 server build"
|
|
||||||
|
|
||||||
github-release upload \
|
|
||||||
--tag $TAG \
|
|
||||||
--name "$SERVER_BUILD" \
|
|
||||||
--file "dist/$SERVER_BUILD"
|
|
||||||
|
|
||||||
echo "Building docker image"
|
echo "Building docker image"
|
||||||
|
|
||||||
|
@ -105,4 +78,4 @@ echo "Pushing docker image to dockerhub"
|
||||||
|
|
||||||
bin/push-docker-image.sh $VERSION
|
bin/push-docker-image.sh $VERSION
|
||||||
|
|
||||||
echo "Release finished!"
|
echo "Release finished!"
|
||||||
|
|
|
@ -5,7 +5,7 @@ const TPL = `
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<span class="bx bx-trash"></span>
|
<span class="bx bx-trash"></span>
|
||||||
|
|
||||||
Delete matched note
|
Delete matched notes
|
||||||
</td>
|
</td>
|
||||||
<td class="button-column">
|
<td class="button-column">
|
||||||
<span class="bx bx-x icon-action action-conf-del"></span>
|
<span class="bx bx-x icon-action action-conf-del"></span>
|
||||||
|
|
Loading…
Reference in a new issue