Commit 301d5651 authored by Fiona Neill's avatar Fiona Neill

Merge branch 'russell/improve-pages-cicd-steps' into 'master'

Improve Pages CI/CD instructions

See merge request gitlab-org/gitlab!73452
parents cb6fbc51 4a0652dd
...@@ -16,15 +16,13 @@ Use a `.gitlab-ci.yml` template when you have an existing project that you want ...@@ -16,15 +16,13 @@ Use a `.gitlab-ci.yml` template when you have an existing project that you want
Your GitLab repository should contain files specific to an SSG, or plain HTML. After you complete Your GitLab repository should contain files specific to an SSG, or plain HTML. After you complete
these steps, you may have to do additional configuration for the Pages site to generate properly. these steps, you may have to do additional configuration for the Pages site to generate properly.
1. On the left sidebar, select **Project information**. 1. On the top bar, select **Menu > Projects** and find your project.
1. Click **Set up CI/CD**. If this button is not available, CI/CD is already configured for your project. 1. On the left sidebar, select the project's name.
You may want to browse the `.gitlab-ci.yml` files [in these projects instead](https://gitlab.com/pages). 1. From the **Add** (**{plus}**) dropdown, select **New file**.
1. From the **Apply a template** list, choose a template for the SSG you're using. 1. From the **Select a template type** dropdown, select `.gitlab-ci.yml`.
You can also choose plain HTML. If you don't find a corresponding template, you can view the 1. From the **Apply a template** dropdown, in the **Pages** section, select the name of your SSG.
[GitLab Pages group of sample projects](https://gitlab.com/pages). 1. In the **Commit message** box, type the commit message.
These projects contain `.gitlab-ci.yml` files that you can modify for your needs. 1. Select **Commit changes**.
You can also [learn how to write your own `.gitlab-ci.yml` file for GitLab Pages](pages_from_scratch.md).
1. Save and commit the `.gitlab-ci.yml` file.
If everything is configured correctly, the site can take approximately 30 minutes to deploy. If everything is configured correctly, the site can take approximately 30 minutes to deploy.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment