Skip to content

Commit

Permalink
Use pages component to deploy to GitLab Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeychernyshev committed Mar 22, 2024
1 parent a5b7331 commit f29a701
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
include:
- component: gitlab.com/gitterra/GitTerra/gitterra@~latest
- component: gitlab.com/gitterra/GitTerra/pages@~latest

stages:
- build
Expand All @@ -8,20 +9,3 @@ stages:
build:
stage: build
script: echo "Building this test repo, while playing GitTerra in separate stage."

pages:
stage: play GitTerra
needs: [GitTerra]
script:
- find .
- mkdir public/
- mv index.html public/
- mv gitterra.json public/
artifacts:
paths:
# The folder that contains the files to be exposed at the Page URL
- public
rules:
# This ensures that only pushes to the default branch will trigger
# a pages deploy
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH

0 comments on commit f29a701

Please sign in to comment.