From 25221ee9417538540d467c7eeac31433cf4f58da Mon Sep 17 00:00:00 2001 From: C Charles Date: Fri, 22 Apr 2022 02:33:47 +0000 Subject: [PATCH] Update README.md to main branch rather than master With suggestion that updates to rule to cover any default branch. --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e5ddb6c..7b38b22 100644 --- a/README.md +++ b/README.md @@ -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): ``` -image: alpine:latest +image: busybox pages: stage: deploy @@ -31,8 +31,9 @@ pages: artifacts: paths: - public - only: - - master + expire_in: 1 day + rules: + - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH ``` The above example expects to put all your HTML files in the `public/` directory.