fix download url

This commit is contained in:
Jeffrey Morgan
2023-07-07 16:07:10 -04:00
parent 049295d9ba
commit 39e946f256
11 changed files with 101 additions and 23 deletions

View File

@@ -18,12 +18,16 @@ if ! git rev-parse v$VERSION >/dev/null 2>&1; then
git push origin v$VERSION
fi
mkdir 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.
gh release create v$VERSION
# Upload the zip file.
gh release upload v$VERSION "app/out/make/zip/${OS}/${ARCH}/Ollama-${OS}-${ARCH}-${VERSION}.zip#Ollama-${OS}-${ARCH}.zip"
gh release upload v$VERSION ./dist/Ollama-${OS}-${ARCH}.zip
# Upload the binary.
gh release upload v$VERSION "./ollama#ollama-${OS}-${ARCH}"
gh release upload v$VERSION ./dist/ollama-${OS}-${ARCH}