From c2b14d055c0b519624e02baf8f10673d2efc5651 Mon Sep 17 00:00:00 2001 From: JUAN MIGUEL VANEGAS GUERRERO <juan.vanegasg@cun.edu.co> Date: Fri, 22 Apr 2022 03:04:07 +0000 Subject: [PATCH] Update .gitlab-ci.yml to latest version --- .gitlab-ci.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c5aad57..0c5f831 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 -- GitLab