mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Change the only keyword to use the newer rules syntax
This commit is contained in:
parent
13655d68f5
commit
9de31d0507
@ -122,15 +122,14 @@ contents:
|
|||||||
image: python:latest
|
image: python:latest
|
||||||
pages:
|
pages:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
only:
|
|
||||||
- master # (1)!
|
|
||||||
- main
|
|
||||||
script:
|
script:
|
||||||
- pip install mkdocs-material
|
- pip install mkdocs-material
|
||||||
- mkdocs build --site-dir public
|
- mkdocs build --site-dir public
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public
|
- public
|
||||||
|
rules:
|
||||||
|
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
|
||||||
```
|
```
|
||||||
|
|
||||||
1. At some point, GitLab renamed `master` to `main`. If your default branch
|
1. At some point, GitLab renamed `master` to `main`. If your default branch
|
||||||
@ -142,15 +141,14 @@ contents:
|
|||||||
image: python:latest
|
image: python:latest
|
||||||
pages:
|
pages:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
only:
|
|
||||||
- master
|
|
||||||
- main
|
|
||||||
script: # (1)!
|
script: # (1)!
|
||||||
- pip install git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
|
- pip install git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
|
||||||
- mkdocs build --site-dir public
|
- mkdocs build --site-dir public
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public
|
- public
|
||||||
|
rules:
|
||||||
|
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
|
||||||
```
|
```
|
||||||
|
|
||||||
1. Remember to set the `GH_TOKEN` environment variable to the value of your
|
1. Remember to set the `GH_TOKEN` environment variable to the value of your
|
||||||
|
Loading…
Reference in New Issue
Block a user