Set up a static blog using Hugo and GitHub Actions
To set up a static blog using the Hugo framework and automate deployment via GitHub Actions, follow these steps: 1. Clone a base framework (e.g., sulv-hugo-papermod). 2. Initialize the theme via git submodules. 3. Run the Hugo server locally to preview. 4. Create a public GitHub repository and link it as the remote origin. 5. Push changes to trigger automatic deployment.
# Step 1: Clone the framework
git clone https://github.com/xyming108/sulv-hugo-papermod.git
# Step 2: Download theme
git submodule update --init
# Step 3: Start Hugo server
hugo server -D
# Step 4: Set up GitHub upstream
git remote add origin git@github.com:huan11/huan11.github.io.git