Skip to content
Snippets Groups Projects
Commit df6e5548 authored by Kroum Tzanev's avatar Kroum Tzanev
Browse files

passage à gm 0.16 pour le ci/cd

parent 3cc58a80
No related branches found
No related tags found
No related merge requests found
Pipeline #37575 passed
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment