Hi Nicole! I just had a look at your repository and it looks like you're using the main branch whereas your .travis.yml is saying to only deploy the Next.js application on master branch. Could you try changing this line: github.com/Sun-Mountain/Sun-Mounta... to be main instead of master.
Then I think you'll need to change the GitHub pages source to be the gh-pages branch (which also hasn't been created yet due to the issue above).
Let me know if that helps and I'll update the tutorial.
Thank you! And one more quick question. For updating the website, would you recommend branching off of master/main and then merging main into gh-pages? Or branching of gh-pages and merging into gh-pages and then main?
So you should branch off master/main and then merge back into master/main.
Once you've merged your changes, Travis will build and export your Next.js application and then push the new HTML (out directory) onto your gh-pages branch - it uses a force push to completely overwrite the branch.
You shouldn't ever need to touch the gh-pages branch.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Nicole! I just had a look at your repository and it looks like you're using the
main
branch whereas your.travis.yml
is saying to only deploy the Next.js application onmaster
branch. Could you try changing this line: github.com/Sun-Mountain/Sun-Mounta... to bemain
instead ofmaster
.Then I think you'll need to change the GitHub pages source to be the
gh-pages
branch (which also hasn't been created yet due to the issue above).Let me know if that helps and I'll update the tutorial.
Thanks!
Hi James!
Thank you for your prompt reply! And thank you for pointing out the main, it's a new change so I'm still getting used to it. 🤦♀️
And it worked! Thank you so much! <3
Good to hear, your website looks great!
Thank you! And one more quick question. For updating the website, would you recommend branching off of master/main and then merging main into gh-pages? Or branching of gh-pages and merging into gh-pages and then main?
So you should branch off master/main and then merge back into master/main.
Once you've merged your changes, Travis will build and export your Next.js application and then push the new HTML (
out
directory) onto yourgh-pages
branch - it uses a force push to completely overwrite the branch.You shouldn't ever need to touch the
gh-pages
branch.