Merge branch 'zip-to-ddw' into 'cicd'

feat(#8): Deploy as .ddw files intead of zip

See merge request Thoscellen/Wallset!17
This commit is contained in:
Simon 2023-07-15 20:56:35 +00:00
commit 26c51d409f
2 changed files with 11 additions and 7 deletions

3
.gitignore vendored
View File

@ -5,3 +5,6 @@
# Ignore python stuff
**/__pycache__
**/.pytest_cache
# Ignore les fichiers système de MacOS
**/.DS_Store

View File

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