1

我有一个这样的回购:

  • 应用 // 应用源代码
  • Website // 网站源代码,我的 GitLab 页面在哪里

我想要的是当我运行 .gitlab-ci.yml 时,它会部署网站目录中的所有文件。现在,我在尝试部署时遇到错误。我怎样才能做到这一点?这是我当前的 .gitlab-ci.yml:

image: ruby:2.3

variables:
  JEKYLL_ENV: production

before_script:
  - bundle install

test:
  stage: test
  script:
    - bundle exec jekyll build -d test
  artifacts:
    paths:
      - test
  except:
    - master

pages:
  stage: deploy
  script:
    - bundle exec jekyll build -d public
  artifacts:
    paths:
      - public
  only:
    - master
4

1 回答 1

0

在您网站的存储库中名为“public”的目录是处理页面的必要条件:https ://docs.gitlab.com/ee/user/project/pages/introduction.html

于 2019-06-28T10:17:21.093 回答