{"repo":"victoriadrake/hugo-remote","free":true,"listed":false,"github":"https://github.com/victoriadrake/hugo-remote","clone":"git clone https://github.com/victoriadrake/hugo-remote.git","description":"GitHub Action to build and deploy a Hugo site to a remote repository. Deploy from a private repo to a public one!","language":"Shell","stars":69,"topics":["hugo-site","workflow","deployment-automation","continuous-integration","security"],"license":"MIT","category":"security-tools","readme_excerpt":"GitHub Action to build and deploy a Hugo site to a remote repository 🚀 If you've ever wanted to keep your Hugo site source repository private, but deploy the site to your public GitHub Pages repository, you're in the right place. This action cleans and rebuilds your Hugo site, and pushes the new build to a remote repository you define. It always uses the latest extended version from Hugo releases. The extended version enables the processing of SCSS and Sass files to CSS. To save build time, the action first checks that you have a valid configuration file in the repository root. See documentation for Hugo's Configuration File. Your site will build in the DEST directory you specify (Hugo's usual default is public ). The contents of this directory will then be pushed to master of your remote public repository. Use this in your workflow Here's how to use this action in your workflow file. 1. Add a Personal Access Token as a Secret called TOKEN in your repository See Creating a token to set up a Personal Access Token. See Creating and storing encrypted secrets for instructions to add this to your repository. When you're finished, your repository's Secrets tab will look like this: 2. Set your environment variables and add this action in a workflow This action expects variables for: - REMOTE , your remote repository in the format / .git , - DEST , the name of the destination directory you would like the site to build to, - TOKEN , in the form ${{ secrets.TOKEN }} assuming TOKEN is ","default_branch":null,"files":null,"tree":[],"storefront":"/r/victoriadrake","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/victoriadrake/hugo-remote/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}