Loading .gitlab-ci.yml 0 → 100644 +16 −0 Original line number Diff line number Diff line image: alpine:latest stages: - deploy pages: stage: deploy script: # Create a public directory and put your static files inside it - mkdir public - echo "<html><head><title>My GitLab Pages</title></head><body><h1>Hello from GitLab Pages!</h1></body></html>" > public/index.html artifacts: paths: - public only: - main # or 'master' or another branch name you want to deploy from No newline at end of file Loading
.gitlab-ci.yml 0 → 100644 +16 −0 Original line number Diff line number Diff line image: alpine:latest stages: - deploy pages: stage: deploy script: # Create a public directory and put your static files inside it - mkdir public - echo "<html><head><title>My GitLab Pages</title></head><body><h1>Hello from GitLab Pages!</h1></body></html>" > public/index.html artifacts: paths: - public only: - main # or 'master' or another branch name you want to deploy from No newline at end of file