1
0
mirror of https://gitlab.com/Anson-Projects/projects.git synced 2025-08-02 19:41:38 +00:00

Switch to Quarto

This commit is contained in:
2024-02-29 07:24:30 +00:00
parent e711e88b59
commit 84bfb3b6a9
200 changed files with 16420 additions and 79346 deletions

View File

@@ -1,16 +1,39 @@
image: ghcr.io/quarto-dev/quarto-full:1.5.22
stages:
- build
- deploy
before_script:
- apt-get update
- apt-get -y install --no-install-recommends apt-utils dialog 2>&1
- apt-get -y install git iproute2 procps lsb-release
- apt-get -y install python3 python3-pip
- apt-get -y install r-base
- apt-get -y install julia
- python3 -m pip install jupyter
build_project:
stage: build
script:
- julia -e "using Pkg; Pkg.instantiate(); Pkg.precompile()"
- cp Project.toml /root/.julia/environments/v1.4/Project.toml
- cp Manifest.toml /root/.julia/environments/v1.4/Manifest.toml
- julia -e "using Pkg; Pkg.instantiate(); Pkg.precompile()"
- echo "Building the project with Quarto..."
- quarto render --to html --output-dir public
artifacts:
paths:
- public
pages:
stage: deploy
image: r-base:latest
before_script:
- apt-get update
- apt-get install libssl-dev pandoc build-essential libcurl4-gnutls-dev libxml2-dev libssl-dev -y
- Rscript builtit.R
script:
- mkdir .public
- cp -r ./docs/* .public
- mv .public public
- echo "Publishing site..."
dependencies:
- build_project
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"