-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unify cesium.com deploy #10839
Unify cesium.com deploy #10839
Conversation
Thanks for the pull request @ggetz!
Reviewers, don't forget to make sure that:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ggetz, this will be a great QoL change around release time.
Thanks @sanjeetsuhag! This should be ready fro another look. |
@ggetz When running locally, the built version of CesiumViewer loads, but cannot correctly load all static assets. |
Good catch @sanjeetsuhag-
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thanks @ggetz!
We currently have a fair amount of deploy code that lives only in the
cesium.com
branch. Thecesium.com
branch is the "production" branch; When we push to it as part of the release process, travis CI will deploy files to the website for use in Sandcastle, documentation, cesium viewer, and a list of releases.However, due to this separate deployment code across branches, it can become a chore to merge in
main
given any updates to.travis.yml
or the gulpfile such as when updating dev packages. This PR seeks to unify the logic as much as possible, pulling in the custom deploy logic from that branch and conditionally running it based on Travis environment variables.You can test the "production" paths locally by setting a local
TRAVIS_BRANCH
environment variable to"cesium.com"
.travis.yml
, moving any complex logic to a script, as recommended per the travis CI documentationscripts
totravis
to be consistant with our other reposgulpfile.js
such that it should be the same in both branches. There are now conditional paths where the differences were, which are run only in travis when the branch name matchescesium.com
.