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:
Brad King 2023-02-28 12:05:25 -05:00
parent 0929221ca3
commit f73649823b
3 changed files with 13 additions and 1 deletions

View File

@ -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:

View File

@ -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

View File

@ -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
)