Skip to content

Commit c7f6c8b

Browse files
committed
chore: add GitLab CI/CD configuration for automated builds and deployments
1 parent 992637a commit c7f6c8b

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

gitlab-ci.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# GitLab CI/CD configuration
2+
image: node:20
3+
4+
variables:
5+
PNPM_VERSION: 10.6.3
6+
7+
# Cache dependencies between jobs
8+
cache:
9+
key:
10+
files:
11+
- pnpm-lock.yaml
12+
paths:
13+
- .pnpm-store
14+
- node_modules/
15+
16+
pages:
17+
script:
18+
# Install pnpm
19+
- npm install -g pnpm@$PNPM_VERSION
20+
# Install dependencies
21+
- pnpm install --no-frozen-lockfile
22+
# Build the project
23+
- pnpm run build
24+
artifacts:
25+
paths:
26+
- docs/.vitepress/dist # The built site will be available at /public
27+
rules:
28+
- if: $CI_COMMIT_BRANCH == "main"

0 commit comments

Comments
 (0)