Merge branch 'juan.vanegasg-master-patch-83676' into 'main'

Update .gitlab-ci.yml

See merge request pages/plain-html!190
This commit is contained in:
Marcel Amirault
2022-04-22 03:04:08 +00:00

View File

@@ -1,12 +1,17 @@
# This file is a template, and might need editing before it works on your project.
# Full project: https://gitlab.com/pages/plain-html
image: busybox
pages:
stage: deploy
script:
- echo 'Nothing to do...'
- mkdir .public
- cp -r ./* .public
- rm -rf public
- mv .public public
artifacts:
paths:
- public
expire_in: 1 day
- public
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH