This template includes several files for testing, building, and deploying a Jekyll site via GitHub FTP action to any server.
For NYU-DSS, this will generally be to an NYU Web Hosting server, e.g., specialcollections.hosting.nyu.edu
with CPanel.
This can be adapted to use any static site generator; you'll just need to change the dependencies installed in actions and replace the rake tasks with your runner of choice.
File(s) | Purpose |
---|---|
Gemfile |
specifies the Ruby dependencies. add to / change these for your purpose. |
Rakefile |
specifies the test , build , and reset tasks. |
src |
contains the demo jekyll site. replace this with your own site's source content. |
.github/workflows/deploy.yml |
defines the steps and conditions for deploymentexecuted by GitHub actions |
.github/workflows/test.yml |
defines the steps and conditions for testingexecuted by GitHub actions |
src
directory with your own site's content and _config.yml
with your own site's config.Gemfile
.Log in to your dashboard and navigate to the “FTP Accounts” tab under “Files.”
Create a special FTP account just for deployments. Under “directory” put public_html. If you want the site to be in a subdirectory from the root URL (e.g., “marii.hosting.nyu.edu/my-site”), enter the subdirectory after public_html
with no trailing slash (e.g., public_html/my-site
). More info available here.