ci: upload installer repo as compressed archive (#2636)

Signed-off-by: Adam Treat <treat.adam@gmail.com>
Signed-off-by: Jared Van Bortel <jared@nomic.ai>
Co-authored-by: Jared Van Bortel <jared@nomic.ai>
This commit is contained in:
AT 2024-07-10 16:23:31 -04:00 committed by GitHub
parent 66bc04aa8e
commit a8a0f4635a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -219,11 +219,10 @@ jobs:
~/Qt/Tools/CMake/CMake.app/Contents/bin/cmake --build . --target package
mkdir upload
cp gpt4all-installer-* upload
tar -cvzf upload/repository.tar.gz -C _CPack_Packages/Darwin/IFW/gpt4all-installer-darwin repository
# persist the unsigned installer
- store_artifacts:
path: build/upload
- store_artifacts:
path: build/_CPack_Packages/Darwin/IFW/gpt4all-installer-darwin/repository
# add workspace so signing jobs can connect & obtain dmg
- persist_to_workspace:
root: build
@ -401,10 +400,9 @@ jobs:
~/Qt/Tools/CMake/bin/cmake --build . --target install
~/Qt/Tools/CMake/bin/cmake --build . --target package
cp gpt4all-installer-* upload
tar -cvzf upload/repository.tar.gz -C _CPack_Packages/Linux/IFW/gpt4all-installer-linux repository
- store_artifacts:
path: build/upload
- store_artifacts:
path: build/_CPack_Packages/Linux/IFW/gpt4all-installer-linux/repository
build-offline-chat-installer-windows:
machine:
@ -623,10 +621,10 @@ jobs:
& "C:\Qt\Tools\Ninja\ninja.exe" package
mkdir upload
copy gpt4all-installer-win64.exe upload
Set-Location -Path "_CPack_Packages/win64/IFW/gpt4all-installer-win64"
Compress-Archive -Path 'repository' -DestinationPath '..\..\..\..\upload\repository.zip'
- store_artifacts:
path: build/upload
- store_artifacts:
path: build/_CPack_Packages/win64/IFW/gpt4all-installer-win64/repository
# add workspace so signing jobs can connect & obtain dmg
- persist_to_workspace:
root: build