相关疑难解决方法(0)

为不同的分支部署 GitLab 页面

我正在使用 GitLab Pages 部署我的 React 应用程序,它运行良好。

这是我的gitlab-ci.yml

# Using the node alpine image to build the React app
image: node:alpine

# Announce the URL as per CRA docs
# https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#advanced-configuration
variables:
  PUBLIC_URL: /
# Cache node modules - speeds up future builds
cache:
  paths:
  - client/node_modules

# Name the stages involved in the pipeline
stages:
- deploy

# Job name for gitlab to recognise this results in assets for Gitlab Pages
# https://docs.gitlab.com/ee/user/project/pages/introduction.html#gitlab-pages-requirements
pages:
  stage: deploy
  script:
    - …
Run Code Online (Sandbox Code Playgroud)

git gitlab gitlab-pages

21
推荐指数
3
解决办法
9390
查看次数

标签 统计

git ×1

gitlab ×1

gitlab-pages ×1