- make sure files (index.html, style.css, index.js, etc) are at the root of the master branch
- make a file at the root of master branch called ".gitlab-ci.yml"
- copy pasta and save
- wait for pipeline to finish
- visit [username].gitlab.io/[project slug]
Last active
June 7, 2022 20:50
-
-
Save william-v4/d520e74e3320fd1b05a2411d58d7b79c to your computer and use it in GitHub Desktop.
basic Gitlab pages setup (put index.html and stuff at root)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pages: | |
stage: deploy | |
script: | |
- mkdir .public | |
- cp -r * .public | |
- mv .public public | |
artifacts: | |
paths: | |
- public |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment