In this video, hook up your new deploy script to Travis CI to automate publishing. Nate shows how to add secure environment variables to Travis and kick off the first build.
- [Instructor] To fully automate the deployment,…we need to run our deploy script from the travis.yml file.…There's a few changes we need to make to .travis.yml.…After the line in install where I run Hugo version,…I also want to say NPM install.…That will install the packages that NPM needs…to run our deploy script.…I'm also going to move the Hugo command up into before script…and then change script to do NPM run deploy.…
That should be all that's necessary.…Let's go ahead and check everything into Git…do git add --all.…If we tried to push these changes up now…Travis would run the deploy script,…but it would fail as soon as it couldn't find…those environment variables…with the server connection information.…We need to add those to Travis,…so that they're available for the script.…Over in Travis, in the repo, we need to go the settings…on the right hand side…and scroll down to environment variables.…
Here's where we need to add all four…of those environment variables here in Travis.…So, we'll say, ftp_deploy_host.…
- Advantages of static sites
- Installing Hugo and Git
- Creating a new Hugo site
- Building a new website
- Adding posts, pages, and static content
- Publishing your static site
- Deploying via FTP, AWS, and Netlify
Skill Level Beginner
Amazon Web Services Essential Trainingwith Jeff Winesett5h 2m Intermediate
Amazon Web Services: Storage and Data Managementwith Brandon Rich3h 50m Intermediate
1. How Static Sites Work
2. Set Up Hugo
3. Build a Website
4. Prepare for Publishing
5. Deploy via FTP
6. Deploy to AWS
7. Deploy with Netlify
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.