Set up your Mayflower fork + local repository, see our CONTRIBUTING.md for directions.
Developers and contributors can follow these steps to deploy your branch to your fork's Github Pages environment. This will allow reviewers to test your code without having to build from your branch locally.
- Make sure your local repository is in a clean working state:
git status
. If it's not, you cangit commit
or stash your local changes. - Make sure you have the thing you are deploying (branch or tag) pulled down locally.
- Change directory to the root directory of your local repo (
mayflower
) if you're not already there. - Execute the deploy script by running
./scripts/deploy-gh-pages.sh -b <your-branch-or-tag-name> -t <your-github-username>
- Where
-b
is the build source (required): your git branch or tag name. - Where
-t
is the target remote repo owner (required):<your-github-username>
. - For example, to deploy the branch
DP-1234-my-awesome-thing
to the mayflower forked repojesconstantine/mayflower
, use./scripts/deploy-gh-pages.sh -b DP-1234-my-awesome-thing -t jesconstantine
. - NOTE: if you have a custom domain pointing to your
<github-username>.github.io
, you can pass-c <your-custom-cname>
and-a <path-to-assets-directory>
where-c
is your cname (domain) and-t
is the root relative path to the mayflowerassests/
directory (defaults tomayflower/assets
for<github-username>.github.io/mayflower
- Where
- If this is your first deployment, follow the steps below to set up your Mayflower fork with Github Pages.
This project uses Github Pages as a static site hosting service. Once you have followed the steps above to deploy your work to your Mayflower fork, you should see that your fork now has a gh-pages
branch. Follow these steps (necessary for the first deploy only) to configure your Mayflower fork to serve that static content from your gh-pages
branch.
- On Github, navigate to your Mayflower fork's repository.
- Under your repository name, click the Settings tab.
- From the Settings tab, scroll down to the Github Pages section.
- Under Source, use the drop-down menu to select
gh-pages
as your Github Pages publishing source (you must have agh-pages
branch present for this option show). - Click Save.
You should now be able to see the work that you just deployed! Just visit:
http://<your-github-username>.github.io/mayflower