我有一个这样的回购:
- 应用 // 应用源代码
- 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