Skip to content
Snippets Groups Projects
Commit c98aaa11 authored by Krzysztof Dyszczyk's avatar Krzysztof Dyszczyk
Browse files

Compress rm

parent 1910929c
No related branches found
No related tags found
1 merge request!5Use of YAML templates
......@@ -121,31 +121,15 @@ build to deploy:
script:
- php --version
- ls -l
- rm -rf ${CI_PROJECT_DIR}/release
- rm -rf ${CI_PROJECT_DIR}/release.zip
- rm -rf /tmp/release
- rm -rf ${CI_PROJECT_DIR}/release ${CI_PROJECT_DIR}/release.zip /tmp/release
- mkdir /tmp/release
- mkdir ${CI_PROJECT_DIR}/release
- cp -rf ${CI_PROJECT_DIR}/* /tmp/release
- cp -rf /tmp/release/* ${CI_PROJECT_DIR}/release
- cd ${CI_PROJECT_DIR}/release
- composer install --no-dev --no-progress
- rm -rf build-coverage
- rm -rf release
- rm -rf tests
- rm -rf docs
- rm -rf .git
- rm -f .editorconfig
- rm -f .gitignore
- rm -f .gitlab-ci.yml
- rm -f apigen.neon
- rm -f composer.json
- rm -f composer.lock
- rm -f phpcs.xml.dist
- rm -f phpunit-integration.xml
- rm -f phpunit-unit.xml
- rm -f composer.phar
- rm -f wp-cli.phar
- rm -rf build-coverage release tests docs .git .editorconfig .gitignore .gitlab-ci.yml apigen.neon \
composer.json composer.lock phpcs.xml.dist phpunit-integration.xml phpunit-unit.xml composer.phar wp-cli.phar
- zip -r -q ../release.zip ./
only:
- tags
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment