Episodes

Deploying Static Sites

Episode #330 by Teacher's Avatar 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

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