admin管理员组

文章数量:1390488

Summary

I am trying to deploy a static site to GitLab pages. My intended flow is as follows:

  1. Build the project locally (this is a static html, with some assets)
  2. Push it to GitLab --> Let the pipeline run
  3. Access the site

My Repo

The location of my repository is here!

My CI script is as follows:

pages:
  script:
    - mkdir -p public
    # - cp -R * public/  # Or any command to move your build output to the public folder
  artifacts:
    paths:
      - public
  only:
    - main  # Adjust to your branch if needed

Pipeline and Jobs

Notice that the pipeline successfully completed with two jobs:

  1. Test
  2. Deploy

pipeline to deploy static gitlab page

However, I cannot click into the deploy job to view the logs. And I also don't have the URL where my static site is hosted either.

You can see the actual pipeline ran here!

Thank you

Thanks in advance, and let me know if there are further information that can help troubleshooting.

Cheers Walakaka

Additional Note:

The closest issue I found was this link. But updating my script to follow the answer in the issue did not resolve it for me.

本文标签: GitLab PagesPipeline (Deploy Stage Passing)but pages URL is missingStack Overflow