unity3d-gitlab-ci-example-mirror icon indicating copy to clipboard operation
unity3d-gitlab-ci-example-mirror copied to clipboard

Deploy to github-pages with travis

Open GabLeRoux opened this issue 7 years ago • 0 comments

Travis support is now working. Project is being correctly built and it's only missing a job in .travis.yml to automatically push to gh-pages with the webgl artifact to deploy to github-pages

Here's the related documentation to accomplish this:
https://docs.travis-ci.com/user/deployment/pages/

We will need build stages

The deploy job will need to run after the webgl build success and deploy the artifact stored in ./Builds/WebGL/.

Draft

- stage: deploy
  if: type = push AND branch = master OR branch = feature/gh-pages # temporary branch to test the deployment
  script: skip
  deploy:
    - provider: pages
      skip_cleanup: true
      github_token: $GH_TOKEN  # Set in the settings page of your repository, as a secure variable
      keep_history: true
      local_dir: ./Builds/WebGL/

GabLeRoux avatar Sep 19 '18 01:09 GabLeRoux