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
+2
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:
+9
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
+2 -1
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
)