Skip to content

Commit

Permalink
更新 .gitlab-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Starcloudsea committed Mar 30, 2024
1 parent 926e995 commit 9162e80
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
# The Docker image that will be used to build your app
image: node:20
# Functions that should be executed before the build script is run
before_script:
- npm install
pages:
cache:
paths:
- node_modules/
script:
# - apk add git # 如果你使用的是像 alpine 这样的小型 docker 镜像,并且启用了 lastUpdated,请取消注释
- npm install
- npm run docs:build
artifacts:
paths:
# The folder that contains the files to be exposed at the Page URL
- public
only:
- main
rules:
# This ensures that only pushes to the default branch will trigger
# a pages deploy
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH

0 comments on commit 9162e80

Please sign in to comment.