-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
926e995
commit 9162e80
Showing
1 changed file
with
9 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |