Skip to content

webgtx/build-hugo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Hugo

Build a static website with Hugo using GitHub Actions

How it works

This custom action pulls the Docker image containing the Hugo with embedded dart sass, maintained by hugomods (a non-official Hugo container-image publisher). It then builds your website within the mounted container to the $GITHUB_WORKSPACE. Remember to use the actions/checkout action to fetch your repository and import all your themes before you call webgtx/build-hugo.

Usage

name: Deploy website to Cloudflare

on: push

jobs:
  deploy-to-cloudflare:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          repository: webgtx/alx.zolotarov.me

      - name: Build a website
        uses: webgtx/build-hugo@master

      - name: Publish to Cloudflare Pages
        uses: cloudflare/pages-action@v1
        with:
          apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
          accountId: ef82135ab21746f84e008a42132ca5d
          projectName: beepboop
          directory: public

About

Build & Deploy/Publish Hugo to Cloudflare Pages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published