gitlab-ci: Stage unsigned release package artifacts in a dedicated directory
These artifacts need to be manually signed before distribution. Move them to a dedicated `unsigned/` directory to avoid accidental distribution without signing.
This commit is contained in:
parent
0929221ca3
commit
f73649823b
@ -80,6 +80,8 @@
|
||||
# Any source packages made.
|
||||
- build/cmake-*.tar.gz
|
||||
- build/cmake-*.zip
|
||||
# Any unsigned packages made.
|
||||
- build/unsigned/cmake-*
|
||||
|
||||
.cmake_junit_artifacts:
|
||||
artifacts:
|
||||
|
@ -1,3 +1,12 @@
|
||||
cd build
|
||||
cpack -G TGZ
|
||||
cpack -G DragNDrop
|
||||
|
||||
case "$CMAKE_CI_PACKAGE" in
|
||||
dev)
|
||||
;;
|
||||
*)
|
||||
mkdir -p unsigned
|
||||
mv cmake-*-macos*-universal.* unsigned/
|
||||
;;
|
||||
esac
|
||||
|
@ -33,8 +33,9 @@ file(GLOB_RECURSE paths_recurse RELATIVE "${CMAKE_CURRENT_BINARY_DIR}"
|
||||
)
|
||||
|
||||
# Create a "package" containing the build-tree files needed to build a package.
|
||||
file(MAKE_DIRECTORY build/unsigned)
|
||||
file(ARCHIVE_CREATE
|
||||
OUTPUT build/${CPACK_PACKAGE_FILE_NAME}.build.zip
|
||||
OUTPUT build/unsigned/${CPACK_PACKAGE_FILE_NAME}.build.zip
|
||||
PATHS ${paths} ${paths_recurse}
|
||||
FORMAT zip
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user