Deploying Static Sites

Episode #330 by David Kimura

Summary

Github Pages and Gitlab Pages are both great places to quickly and easily push up static sites directly from your code repository.
static site 9:26

Resources

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