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
|
||||
**/__pycache__
|
||||
**/.pytest_cache
|
||||
**/.pytest_cache
|
||||
|
||||
# Ignore les fichiers système de MacOS
|
||||
**/.DS_Store
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user