如何在子目录中部署GitLab页面?
我有这样的回购协议:如何在子目录中部署GitLab页面?,gitlab,gitlab-pages,Gitlab,Gitlab Pages,我有这样的回购协议: App//App源代码 网站//网站源代码,我的 GitLab页面是 我希望在运行.gitlab-ci.yml时,它会部署网站目录中的所有文件。现在,当它尝试部署时会出现错误。我怎样才能做到这一点? 这是我当前的.gitlab-ci.yml: image: ruby:2.3 variables: JEKYLL_ENV: production before_script: - bundle install test: stage: test scri
- App//App源代码
- 网站//网站源代码,我的 GitLab页面是
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
使用页面时,站点回购协议中名为“public”的目录是必不可少的: