Skip to content
Snippets Groups Projects

Use common CI configuration scripts and configs

Merged Mateusz Tyszczak requested to merge tm-use-common-ci-conf-2 into main
Compare and Show latest version
1 file
+ 1
3
Compare changes
  • Side-by-side
  • Inline
+ 1
3
@@ -53,14 +53,12 @@ generate_docs:
- |
set -xe
cd "${SOURCE_DIR}"
echo "Attempting to replace generated documentation url placeholder: "${DOC_URL}""
echo "Attempting to replace generated documentation url placeholder: ${DOC_URL}"
sed -i "s<\${GEN_DOC_URL}<${DOC_URL}<g" README.md
if grep -q "\${GEN_DOC_URL}" README.md; then exit 1; fi # Ensure that the placeholder was replaced
pnpm pack --pack-destination "${DIST_DIR}" --json > ""${DIST_DIR}/built_package_info.json" # repack to include updated README in final package
BUILT_PACKAGE_NAME=$(jq -r .[].filename "${DIST_DIR}/built_package_info.json")
echo BUILT_PACKAGE_PATH="${DIST_DIR}/${BUILT_PACKAGE_NAME}" > built_package_info.env
after_script:
- scripts/generate_api_docs.sh "${CI_PROJECT_URL}" "${CI_COMMIT_SHA}"
needs:
Loading