mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 09:58:32 +02:00
release scripts fixes
This commit is contained in:
parent
29fd78aee5
commit
87e7828440
@ -1,7 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
echo 'module.exports = { build_date:"'`date --iso-8601=seconds`'", build_revision: "'`git log -1 --format="%H"`'" };' > services/build.js
|
|
||||||
|
|
||||||
echo "Deleting dist"
|
echo "Deleting dist"
|
||||||
|
|
||||||
rm -r dist/*
|
rm -r dist/*
|
||||||
|
@ -18,35 +18,49 @@ if ! git diff-index --quiet HEAD --; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "Releasing Trilium $VERSION"
|
||||||
|
|
||||||
jq '.version = "'$VERSION'"' package.json|sponge package.json
|
jq '.version = "'$VERSION'"' package.json|sponge package.json
|
||||||
|
|
||||||
|
echo 'module.exports = { build_date:"'`date --iso-8601=seconds`'", build_revision: "'`git log -1 --format="%H"`'" };' > services/build.js
|
||||||
|
|
||||||
TAG=v$VERSION
|
TAG=v$VERSION
|
||||||
|
|
||||||
git commit -m "$VERSION"
|
echo "Committing package.json version change"
|
||||||
|
|
||||||
|
git commit -m "release $VERSION"
|
||||||
git push
|
git push
|
||||||
|
|
||||||
|
echo "Tagging commit with $TAG"
|
||||||
|
|
||||||
git tag $TAG
|
git tag $TAG
|
||||||
git push origin $TAG
|
git push origin $TAG
|
||||||
|
|
||||||
echo "Releasing Trilium $VERSION"
|
bin/build.sh
|
||||||
|
|
||||||
build
|
bin/package.sh
|
||||||
|
|
||||||
package
|
|
||||||
|
|
||||||
LINUX_BUILD=trilium-linux-$VERSION.7z
|
LINUX_BUILD=trilium-linux-$VERSION.7z
|
||||||
WINDOWS_BUILD=trilium-windows-$VERSION.7z
|
WINDOWS_BUILD=trilium-windows-$VERSION.7z
|
||||||
|
|
||||||
|
echo "Creating release in GitHub"
|
||||||
|
|
||||||
github-release release \
|
github-release release \
|
||||||
--tag $TAG \
|
--tag $TAG \
|
||||||
--name "$TAG release"
|
--name "$TAG release"
|
||||||
|
|
||||||
|
echo "Uploading linux build"
|
||||||
|
|
||||||
github-release upload \
|
github-release upload \
|
||||||
--tag $TAG \
|
--tag $TAG \
|
||||||
--name "$LINUX_BUILD" \
|
--name "$LINUX_BUILD" \
|
||||||
--file "dist/$LINUX_BUILD"
|
--file "dist/$LINUX_BUILD"
|
||||||
|
|
||||||
|
echo "Uploading windows build"
|
||||||
|
|
||||||
github-release upload \
|
github-release upload \
|
||||||
--tag $TAG \
|
--tag $TAG \
|
||||||
--name "$WINDOWS_BUILD" \
|
--name "$WINDOWS_BUILD" \
|
||||||
--file "dist/$WINDOWS_BUILD"
|
--file "dist/$WINDOWS_BUILD"
|
||||||
|
|
||||||
|
echo "Release finished!"
|
Loading…
x
Reference in New Issue
Block a user