Commit 1b44030c authored by Fulcrand Guilhem's avatar Fulcrand Guilhem
Browse files

Merge branch '161-job-gitlab-pages-doesn-t-work-as-expected' into 'latest'

Resolve "[Job] Gitlab pages doesn't work as expected"

Closes #161

See merge request r2devops/hub!88
parents 02f96dab aeece33f
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -8,7 +8,11 @@ pages:
  variables:
    PAGES_BUILD_PATH: 'documentation_build/'
  script:
    - if [ "$PAGES_BUILD_PATH" != "public" -a "$PAGES_BUILD_PATH" != "public/" ]; then mv "$PAGES_BUILD_PATH" public; fi
    - if [ "$PAGES_BUILD_PATH" != "public" -a "$PAGES_BUILD_PATH" != "public/" ]; then 
    -   if [ -d "public" ]; then rm -rf public; fi
    -   mv "$PAGES_BUILD_PATH" public 
    - fi

    - if [ ! -d "public" ]; then echo "Nothing to deploy"; exit 1; fi
  artifacts:
    paths:
+1 −0
Original line number Diff line number Diff line
* Fix files aggregation for folder `public` in some case instead of creating the folder with the documentation
 No newline at end of file