GoHugo site for my personal website, which is a blog and a portfolio.
To start the development server, run:
hugo server
This will start the server at http://localhost:1313
.
To generate the static site, run:
hugo build
This will generate the static site in the public
directory.
The site is deployed to a staging and a production environment, pushing the contents of the public
directory to the respective FTP servers.
For that reason, the .git-ftp-include
file contains the contents of the public
directory, so it is uploaded to the FTP server.
- The staging environment is triggered when a PR is sent, using git-ftp.
- The staging environment is deployed to an FTP server.
- The
deploy-to-staging
GH workflow is triggered when a PR is sent, using theFTP_SERVER
andSTAGING_FTP_DIR
secrets.
- The production environment is triggered when a commit is merged into the
main
branch, using git-ftp. - The production environment is deployed to an FTP server.
- The
release
GH workflow is triggered when a commit is merged into themain
branch, using theFTP_SERVER
andFTP_DIR
secrets.
- Add a CI workflow that prunes PR sites, in a nighly basis.