mirror of
https://gitlab.com/Thoscellen/Wallset.git
synced 2025-05-31 19:04:51 +02:00
feat(#8): Deploy as .ddw files intead of zip
This commit is contained in:
parent
797caf0678
commit
2c1137b590
5
.gitignore
vendored
5
.gitignore
vendored
@ -4,4 +4,7 @@
|
|||||||
|
|
||||||
# Ignore python stuff
|
# Ignore python stuff
|
||||||
**/__pycache__
|
**/__pycache__
|
||||||
**/.pytest_cache
|
**/.pytest_cache
|
||||||
|
|
||||||
|
# Ignore les fichiers système de MacOS
|
||||||
|
**/.DS_Store
|
@ -60,10 +60,10 @@ variables:
|
|||||||
changes:
|
changes:
|
||||||
- ${ENTRY_FOLDER}/${PACKAGE_NAME}/*
|
- ${ENTRY_FOLDER}/${PACKAGE_NAME}/*
|
||||||
script:
|
script:
|
||||||
- zip -j ${PACKAGE_NAME}.zip ${ENTRY_FOLDER}/${PACKAGE_NAME}/*
|
- zip -j ${PACKAGE_NAME}.wdd ${ENTRY_FOLDER}/${PACKAGE_NAME}/*
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- ${PACKAGE_NAME}.zip
|
- ${PACKAGE_NAME}.ddw
|
||||||
when: on_success
|
when: on_success
|
||||||
expire_in: "1 hour"
|
expire_in: "1 hour"
|
||||||
|
|
||||||
@ -81,7 +81,7 @@ variables:
|
|||||||
- |
|
- |
|
||||||
curl --fail \
|
curl --fail \
|
||||||
--header "JOB-TOKEN: ${CI_JOB_TOKEN}" \
|
--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:
|
.release-job:
|
||||||
stage: Release
|
stage: Release
|
||||||
@ -96,11 +96,12 @@ variables:
|
|||||||
script:
|
script:
|
||||||
- echo "Releasing assets for $PACKAGE_NAME"
|
- echo "Releasing assets for $PACKAGE_NAME"
|
||||||
release:
|
release:
|
||||||
name: "Release $PACKAGE_NAME $RELEASE_VERSION"
|
name: "Livrable $PACKAGE_NAME $RELEASE_VERSION"
|
||||||
tag_name: "$PACKAGE_NAME.$RELEASE_VERSION"
|
tag_name: "$PACKAGE_NAME.$RELEASE_VERSION"
|
||||||
description: "Version $RELEASE_VERSION"
|
description: "Version $RELEASE_VERSION"
|
||||||
ref: "$CI_COMMIT_SHA"
|
ref: "$CI_COMMIT_SHA"
|
||||||
assets:
|
assets:
|
||||||
links:
|
links:
|
||||||
- name: ${PACKAGE_NAME}
|
- name: ${PACKAGE_NAME}.ddw
|
||||||
url: "${PACKAGE_REGISTRY_URL}/${PACKAGE_NAME}.zip"
|
url: "${PACKAGE_REGISTRY_URL}/${PACKAGE_NAME}.ddw"
|
||||||
|
link_type: package
|
||||||
|
Loading…
x
Reference in New Issue
Block a user