generated from jackyzha0/quartz
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
31 lines (27 loc) · 943 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# The Docker image that will be used to build your app
image: python:3.12-slim
variables:
QUARTO_VERSION: "1.4.554"
PROD_DEPLOY_URL: "https://garden.errbufferoverfl.me"
cache:
paths:
- .cache/pip
# Functions that should be executed before the build script is run
before_script:
- apt-get update && apt-get install -y wget ca-certificates
- wget "https://github.com/quarto-dev/quarto-cli/releases/download/v${QUARTO_VERSION}/quarto-${QUARTO_VERSION}-linux-amd64.deb" -O quarto.deb
- dpkg -i quarto.deb
- rm quarto.deb
- python3 -m pip install --upgrade pip
- pip install beautifulsoup4==4.12.0
pages:
script:
- quarto render . --output-dir public
artifacts:
paths:
# The folder that contains the files to be exposed at the Page URL
- public
rules:
# This ensures that only pushes to the default branch will trigger
# a pages deploy
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH