From df6e5548ca78b94c41f982f41de6baa47b2e43d6 Mon Sep 17 00:00:00 2001 From: ktzanev <kroum.tzanev@univ-lille.fr> Date: Fri, 26 Jan 2024 08:37:36 +0100 Subject: [PATCH] =?UTF-8?q?passage=20=C3=A0=20gm=200.16=20pour=20le=20ci/c?= =?UTF-8?q?d?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 31e2661..3d1de42 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,22 +1,12 @@ -variables: - DOCKER_DRIVER: overlay2 # for speed up pages: image: mrnonz/alpine-git-curl:alpine3.16 script: - # get gm - - curl -sL https://github.com/kpym/gm/releases/download/v0.12.0/gm_0.12.0_Linux_64bit.tar.gz | tar -zxvf - gm - # protect gm to be copied in public (no dot files are copied) - - mv gm .gm - # fetch all branches and tags - - git fetch --all --tags + # récupération de gm + - wget -c https://github.com/kpym/gm/releases/download/v0.16.0/gm_0.16.0_Linux_64bit.tar.gz -O - | tar -C /usr/local/bin -xz gm # ---------------------------------------- 2023 - # make public (artifacts) folder - - mkdir public/$YEAR - # generate index.html from README.md - - ./.gm -qc jasonm23-foghorn -t M1Analyse stdin <README.md >public/$YEAR/index.html - # move all sources to public/$YEAR (artifacts) - - find . -mindepth 1 -maxdepth 1 ! -name 'public' ! -name '.*' - - find . -mindepth 1 -maxdepth 1 ! -name 'public' ! -name '.*' -exec mv -t public/$YEAR/ {} + + # - git checkout v2023 + # - YEAR=2023 + - gm --pages --out-dir public/$YEAR '**/*' artifacts: paths: - public -- GitLab