Collating output from unit test and sphinx for HTML GitLab Pages

I have the following .gitlab-ci.yml

My goal is to copy the generated HTML directories from each respective job to a master public HTML page.

But jobs can run concurrently.

For the use case describe above, using the Job approach is incorrect and that I should do everything in a single Job instead.

I am new to GitLab CI/CD philosophy.

stages:
  - test
  - document
  - deploy
  
test-job1:
  stage: test
  tags:
    - windows_10_pro
  script:
    - powershell -Command "cmd /c unittest.cmd"

doc-job1:
  stage: document
  tags:
    - windows_10_pro
  script:
    - powershell -Command "cmd /c runsphinx.cmd"
  
pages:
  stage: deploy
  tags:
    - windows_10_pro
  needs: ["test-job1", "doc-job1"]
  script:
    - powershell -Command "cmd /c cicd.cmd"
  artifacts:
    paths:
      - public/