|
@@ -8,9 +8,8 @@ if [[ -z "${VERSION}" ]]; then
|
|
fi
|
|
fi
|
|
|
|
|
|
OS=$(go env GOOS)
|
|
OS=$(go env GOOS)
|
|
-ARCH=$(go env GOARCH)
|
|
|
|
|
|
|
|
-./script/build.sh
|
|
|
|
|
|
+./script/build_${OS}.sh
|
|
|
|
|
|
# Create a new tag if it doesn't exist.
|
|
# Create a new tag if it doesn't exist.
|
|
if ! git rev-parse v$VERSION >/dev/null 2>&1; then
|
|
if ! git rev-parse v$VERSION >/dev/null 2>&1; then
|
|
@@ -19,16 +18,8 @@ fi
|
|
|
|
|
|
git push origin v$VERSION
|
|
git push origin v$VERSION
|
|
|
|
|
|
-mkdir -p dist
|
|
|
|
-cp app/out/make/zip/${OS}/${ARCH}/Ollama-${OS}-${ARCH}-${VERSION}.zip dist/Ollama-${OS}-${ARCH}.zip
|
|
|
|
-cp ./ollama dist/ollama-${OS}-${ARCH}
|
|
|
|
-
|
|
|
|
# Create a new release.
|
|
# Create a new release.
|
|
gh release create -p v$VERSION -t v$VERSION
|
|
gh release create -p v$VERSION -t v$VERSION
|
|
|
|
|
|
# Upload the zip file.
|
|
# Upload the zip file.
|
|
-gh release upload v$VERSION ./dist/Ollama-${OS}-${ARCH}.zip --clobber
|
|
|
|
-
|
|
|
|
-# Upload the binary.
|
|
|
|
-gh release upload v$VERSION ./dist/ollama-${OS}-${ARCH} --clobber
|
|
|
|
-
|
|
|
|
|
|
+gh release upload v$VERSION ./dist/* --clobber
|