Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
5f869559
Commit
5f869559
authored
Sep 15, 2021
by
Marcel Amirault
Committed by
Suzanne Selhorn
Sep 15, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update pages keyword to new style
parent
08cd6b69
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
doc/ci/yaml/index.md
doc/ci/yaml/index.md
+13
-8
No files found.
doc/ci/yaml/index.md
View file @
5f869559
...
@@ -4351,15 +4351,12 @@ name level and not in the `vault` section.
...
@@ -4351,15 +4351,12 @@ name level and not in the `vault` section.
### `pages`
### `pages`
Use
`pages`
to
upload static content to GitLab. The conten
t
Use
`pages`
to
define a
[
GitLab Pages
](
../../user/project/pages/index.md
)
job tha
t
is then published as a website. You must:
uploads static content to GitLab. The content is then published as a website.
-
Place any static content in a
`public/`
directory.
**Keyword type**
: Job name.
-
Define
[
`artifacts`
](
#artifacts
)
with a path to the
`public/`
directory.
The following example moves all files from the root of the project to the
**Example of `pages`**
:
`public/`
directory. The
`.public`
workaround is so
`cp`
does not also copy
`public/`
to itself in an infinite loop:
```
yaml
```
yaml
pages
:
pages
:
...
@@ -4375,7 +4372,15 @@ pages:
...
@@ -4375,7 +4372,15 @@ pages:
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
```
```
View the
[
GitLab Pages user documentation
](
../../user/project/pages/index.md
)
.
This example moves all files from the root of the project to the
`public/`
directory.
The
`.public`
workaround is so
`cp`
does not also copy
`public/`
to itself in an infinite loop.
**Additional details**
:
You must:
-
Place any static content in a
`public/`
directory.
-
Define
[
`artifacts`
](
#artifacts
)
with a path to the
`public/`
directory.
### `inherit`
### `inherit`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment