我有一个名称如下的小组项目(托管在 Gitlab 中):gitlab.com/my-group/my-project。
我在测试期间生成了覆盖率报告,并使用 Gitlab CI 将它们保存为工件。这是 Gitlab CI 配置:
test:
stage: test
image: node:11
before_script:
- npm install -g yarn
- yarn
cache:
paths:
- node_modules/
script:
- yarn lint
- yarn test --all --coverage src/
except:
- tags
artifacts:
paths:
- coverage/
coverage: '/Statements\s+\:\s+(\d+\.\d+)%/'
deploy-pages:
stage: deploy
dependencies:
- test
script:
- mv coverage/ public/
artifacts:
paths:
- public/
expire_in: 30 days
except:
- tags
当我打开部署阶段作业时,我可以看到正在创建的工件。这是屏幕截图:。所有文件都在工件的 /public 目录下。
现在,当我转到:https ://my-group.gitlab.io/my-project 时,我不断收到 404。
我不确定我在这里缺少什么步骤。有人可以为我解释一下这个问题吗?
谢谢!