Update README.md to main branch rather than master
With suggestion that updates to rule to cover any default branch.
This commit is contained in:
committed by
Marcel Amirault
parent
f8ee116ab0
commit
25221ee941
@@ -22,7 +22,7 @@ This project's static Pages are built by [GitLab CI][ci], following the steps
|
|||||||
defined in [`.gitlab-ci.yml`](.gitlab-ci.yml):
|
defined in [`.gitlab-ci.yml`](.gitlab-ci.yml):
|
||||||
|
|
||||||
```
|
```
|
||||||
image: alpine:latest
|
image: busybox
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
@@ -31,8 +31,9 @@ pages:
|
|||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public
|
- public
|
||||||
only:
|
expire_in: 1 day
|
||||||
- master
|
rules:
|
||||||
|
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
|
||||||
```
|
```
|
||||||
|
|
||||||
The above example expects to put all your HTML files in the `public/` directory.
|
The above example expects to put all your HTML files in the `public/` directory.
|
||||||
|
|||||||
Reference in New Issue
Block a user