Skip to content

Commit

Permalink
Prepare for release
Browse files Browse the repository at this point in the history
  • Loading branch information
eliandoran committed Sep 7, 2024
1 parent e4d6ab3 commit 6dee56d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 34 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Main
on:
push:
branches:
- develop
tags:
- v*
workflow_dispatch:
permissions:
contents: write
Expand Down
32 changes: 0 additions & 32 deletions bin/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,35 +47,3 @@ echo "Tagging commit with $TAG"

git tag $TAG
git push origin $TAG

bin/build.sh

LINUX_X64_BUILD=trilium-linux-x64-$VERSION.tar.xz
DEBIAN_X64_BUILD=trilium_${VERSION}_amd64.deb
WINDOWS_X64_BUILD=trilium-windows-x64-$VERSION.zip
MAC_X64_BUILD=trilium-mac-x64-$VERSION.zip
MAC_ARM64_BUILD=trilium-mac-arm64-$VERSION.zip
SERVER_BUILD=trilium-linux-x64-server-$VERSION.tar.xz

echo "Creating release in GitHub"

EXTRA=

if [[ $TAG == *"beta"* ]]; then
EXTRA=--prerelease
fi

if [ ! -z "$GITHUB_CLI_AUTH_TOKEN" ]; then
echo "$GITHUB_CLI_AUTH_TOKEN" | gh auth login --with-token
fi

gh release create -d "$TAG" \
--title "$TAG release" \
--notes "" \
$EXTRA \
"dist/$DEBIAN_X64_BUILD" \
"dist/$LINUX_X64_BUILD" \
"dist/$WINDOWS_X64_BUILD" \
"dist/$MAC_X64_BUILD" \
"dist/$MAC_ARM64_BUILD" \
"dist/$SERVER_BUILD"

0 comments on commit 6dee56d

Please sign in to comment.