# GitLab Pages #### 1. 網頁的東西放到 public 資料夾下  #### 2.到 Build > Piplines editor 新增 .gitlab-ci.yaml ``` pages: stage: deploy script: - echo "The site will be deployed to $CI_PAGES_URL" artifacts: paths: - public rules: - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH ``` #### 3. 網頁推到 git 上,右上角會出現綠色勾勾  #### 4. Build > Pipelines 會出現成功或失敗  #### 5. 成功後去 Deploy > Pages 找網頁的連結  #### private 無法變成 public -> 需要是 public 才可以被別人看到 因為 Group 是私人的,所以無法公開 需要改道個人或公開的 group 才可以變 public Setting > General > Advanced > Transfer project
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up