Posts
Using Hugo on Gitpod
Create the necessary Gitpod files on the root of your repository.
$ touch .gitpod.Dockerfile $ touch .gitpod.yml # file: .gitpod.DockerfileFROMgitpod/workspace-fullUSERrootRUN apt-get update && apt-get install -yq hugo# file: .gitpod.yml image: file: .gitpod.Dockerfile tasks: - command: 'hugo server --baseUrl $(gp url 1313) --appendPort=false' ports: - port: 1313 onOpen: open-preview After commiting and merging your code, you can then go to https://gitpod.io/#https://github.com/<YOUR_USERNAME>/<YOUR_REPO_NAME> to start your Gitpod workspace.
Optionally, you can also add a Gitpod badge on your README file:
Posts
Deploy Hugo Site Using GitHub Actions
After creating a new project using Hugo’s Quick Start guide, you can then deploy to GitHub Pages.
Git Branches For this site, we are deploying the project hosted at napjoseph/napjoseph.github.io.
Since this is an Organization Pages-type repository, we will be using following branches for our workflow:
$ git branch master # the branch that GitHub pages will serve the files from stable # the main development branch where all pull requests will be merged to id_your_feature # additional development branches for new features Add your Deploy Key Follow the tutorial over at peaceiris/actions-gh-pages and add an SSH deploy key for your project.