From 2c1137b590b8b8face366a09a2fbf7a585c01266 Mon Sep 17 00:00:00 2001 From: Simon Date: Sat, 15 Jul 2023 20:56:35 +0000 Subject: [PATCH] feat(#8): Deploy as .ddw files intead of zip --- .gitignore | 5 ++++- .gitlab-ci.yml | 13 +++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 7018967..d59cebe 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,7 @@ # Ignore python stuff **/__pycache__ -**/.pytest_cache \ No newline at end of file +**/.pytest_cache + +# Ignore les fichiers système de MacOS +**/.DS_Store \ No newline at end of file diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f0e5cbb..3b1e334 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -60,10 +60,10 @@ variables: changes: - ${ENTRY_FOLDER}/${PACKAGE_NAME}/* script: - - zip -j ${PACKAGE_NAME}.zip ${ENTRY_FOLDER}/${PACKAGE_NAME}/* + - zip -j ${PACKAGE_NAME}.wdd ${ENTRY_FOLDER}/${PACKAGE_NAME}/* artifacts: paths: - - ${PACKAGE_NAME}.zip + - ${PACKAGE_NAME}.ddw when: on_success expire_in: "1 hour" @@ -81,7 +81,7 @@ variables: - | curl --fail \ --header "JOB-TOKEN: ${CI_JOB_TOKEN}" \ - --upload-file ${PACKAGE_NAME}.zip "${PACKAGE_REGISTRY_URL}/${PACKAGE_NAME}.zip?select=package_file" + --upload-file ${PACKAGE_NAME}.ddw "${PACKAGE_REGISTRY_URL}/${PACKAGE_NAME}.ddw?select=package_file" .release-job: stage: Release @@ -96,11 +96,12 @@ variables: script: - echo "Releasing assets for $PACKAGE_NAME" release: - name: "Release $PACKAGE_NAME $RELEASE_VERSION" + name: "Livrable $PACKAGE_NAME $RELEASE_VERSION" tag_name: "$PACKAGE_NAME.$RELEASE_VERSION" description: "Version $RELEASE_VERSION" ref: "$CI_COMMIT_SHA" assets: links: - - name: ${PACKAGE_NAME} - url: "${PACKAGE_REGISTRY_URL}/${PACKAGE_NAME}.zip" + - name: ${PACKAGE_NAME}.ddw + url: "${PACKAGE_REGISTRY_URL}/${PACKAGE_NAME}.ddw" + link_type: package