diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8cd28a2d115bde1103c9b2090a3df71c1819efc0..3606aa5e26be6fe494d6c42e5d929ead24500e3d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -140,7 +140,8 @@ deploy_website_main: script: - echo "'${APPS_HOST}'" - echo "'${APPS_DIR}'" - - rsync -avh --delete-before dist/ ${APPS_HOST}:${APPS_DIR}/ + - rsync -avh --delete-before dist/* ${APPS_HOST}:${APPS_DIR}/ + - rsync -avh dist/.htaccess ${APPS_HOST}:${APPS_DIR}/ rules: - if: >- $CI_COMMIT_BRANCH == "main" && @@ -169,7 +170,8 @@ deploy_website_other: - echo "'${APPS_DIR}'" - echo "'${CI_COMMIT_REF_SLUG}'" - echo "'${APPS_DIR_BRANCH}'" - - rsync -avh --delete-before dist/ ${APPS_HOST}:${APPS_DIR_BRANCH}/ + - rsync -avh --delete-before dist/* ${APPS_HOST}:${APPS_DIR_BRANCH}/ + - rsync -avh dist/.htaccess ${APPS_HOST}:${APPS_DIR_BRANCH}/ variables: APPS_DIR_BRANCH: ${APPS_DIR}/${CI_COMMIT_REF_SLUG} rules: