Skip to content

Commit

Permalink
Create .gitlab-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Alina1906 authored Apr 6, 2024
1 parent 4f57d6b commit 593303e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
stages:
- deploy

pages:
stage: deploy
image: rust
variables:
CARGO_HOME: $CI_PROJECT_DIR/cargo
before_script:
- export PATH="$PATH:$CARGO_HOME/bin"
- mdbook --version || cargo install mdbook
script:
- mdbook build -d public
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
artifacts:
paths:
- public
cache:
paths:
- $CARGO_HOME/bin

0 comments on commit 593303e

Please sign in to comment.