Resources

Gitlab Pages - https://docs.gitlab.com/ee/user/project/pages/
GitHub Pages - https://pages.github.com/

This episode is sponsored by Hook Relay

Summary

# .gitlab-ci.yml
pages:
  stage: deploy
  script:
    - mkdir .public
    - cp -r * .public
    - rm -rf public
    - mv .public public
  artifacts:
    paths:
      - public
  rules:
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH