mirror of
https://gitlab.com/Anson-Projects/projects.git
synced 2025-06-15 14:36:47 +00:00
40 lines
1019 B
YAML
40 lines
1019 B
YAML
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
|
|
script:
|
|
- echo "Publishing site..."
|
|
dependencies:
|
|
- build_project
|
|
artifacts:
|
|
paths:
|
|
- public
|
|
rules:
|
|
- if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"
|