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

améliore le ci/cd

parent 469f395f
No related branches found
No related tags found
No related merge requests found
Pipeline #34714 passed
variables:
DOCKER_DRIVER: overlay2 # for speed up
pages:
image: alpine/curl:3.14
image: mrnonz/alpine-git-curl:alpine3.16
script:
# make public (artifacts) folder
- mkdir public
# get gm
- curl -sL https://github.com/kpym/gm/releases/download/v0.9.11/gm_0.9.11_Linux_64bit.tar.gz | tar -zxvf - 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
# ---------------------------------------- 2023
# make public (artifacts) folder
- mkdir public/$YEAR
# generate index.html from README.md
- ./gm -qc jasonm23-foghorn -t M61 stdin <README.md >public/index.html
# move all sources to public (artifacts)
- mv TDs public/TDs
- ./.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/ {} +
artifacts:
paths:
- public
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment