All Projects → chabad360 → hugo-gh-pages

chabad360 / hugo-gh-pages

Licence: MIT License
🚀 Build and Publish Your Hugo Site to GitHub Pages 🚀

Programming Languages

shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to hugo-gh-pages

Actions Gh Pages
GitHub Actions for GitHub Pages 🚀 Deploy static files and publish your site easily. Static-Site-Generators-friendly.
Stars: ✭ 2,576 (+6862.16%)
Mutual labels:  github-pages, hugo, actions
Cstate
🔥 Open source static (serverless) status page. Uses hyperfast Go & Hugo, minimal HTML/CSS/JS, customizable, outstanding browser support (IE8+), preloaded CMS, read-only API, badges & more.
Stars: ✭ 1,186 (+3105.41%)
Mutual labels:  github-pages, hugo
Wowchemy Hugo Modules
🔥 Hugo website builder, Hugo themes & Hugo CMS. No code, build with widgets! 创建在线课程,学术简历或初创网站。
Stars: ✭ 6,093 (+16367.57%)
Mutual labels:  github-pages, hugo
jekyll-deploy-action
🪂 A Github Action to deploy the Jekyll site conveniently for GitHub Pages.
Stars: ✭ 162 (+337.84%)
Mutual labels:  workflow, actions
denoflow
Configuration as Code, use YAML to write automated workflows that run on Deno, with any Deno modules, Typescript/Javascript codes
Stars: ✭ 143 (+286.49%)
Mutual labels:  workflow, actions
Actionsflow
The free Zapier/IFTTT alternative for developers to automate your workflows based on Github actions
Stars: ✭ 2,243 (+5962.16%)
Mutual labels:  workflow, actions
Github Pages Deploy Action
Automatically deploy your project to GitHub Pages using GitHub Actions. This action can be configured to push your production-ready code into any branch you'd like.
Stars: ✭ 2,507 (+6675.68%)
Mutual labels:  github-pages, workflow
action-sync-node-meta
GitHub Action that syncs package.json with the repository metadata.
Stars: ✭ 25 (-32.43%)
Mutual labels:  workflow, actions
Emacs Easy Hugo
Emacs major mode for managing hugo
Stars: ✭ 235 (+535.14%)
Mutual labels:  github-pages, hugo
craft-text-detector
Packaged, Pytorch-based, easy to use, cross-platform version of the CRAFT text detector
Stars: ✭ 151 (+308.11%)
Mutual labels:  workflow, actions
wowchemy-hugo-themes
🔥 Hugo website builder, Hugo themes & Hugo CMS. No code, easily build with blocks! 创建在线课程,学术简历或初创网站。#OpenScience
Stars: ✭ 6,891 (+18524.32%)
Mutual labels:  github-pages, hugo
tip
GitHub Action to keep a 'tip' pre-release always up-to-date
Stars: ✭ 18 (-51.35%)
Mutual labels:  workflow, actions
nextjs-github-pages
🚀 Deploy a Next.js app to Github Pages via Github Actions.
Stars: ✭ 89 (+140.54%)
Mutual labels:  github-pages, actions
Fastpages
An easy to use blogging platform, with enhanced support for Jupyter Notebooks.
Stars: ✭ 2,888 (+7705.41%)
Mutual labels:  github-pages, actions
csharp-docs-generator
An action that generates html documentation for C# programs to use for GitHub pages.
Stars: ✭ 21 (-43.24%)
Mutual labels:  github-pages, actions
version-check
An action that allows you to check whether your npm package version has been updated
Stars: ✭ 65 (+75.68%)
Mutual labels:  workflow, actions
bootstrap-gulp-starter-template
Bootstrap 4 + Gulp 4 + Panini for improve front-end development workflow
Stars: ✭ 67 (+81.08%)
Mutual labels:  workflow
alfred-mailto
Send emails to recipients and groups from Alfred
Stars: ✭ 59 (+59.46%)
Mutual labels:  workflow
vanilla-bootstrap-hugo-theme
A vanilla Bootstrap theme for Hugo
Stars: ✭ 63 (+70.27%)
Mutual labels:  hugo
simple-a
Minimalistic Hugo theme
Stars: ✭ 52 (+40.54%)
Mutual labels:  hugo
Image Credit: Peaceiris

Image Credit: Peaceiris

Build and Publish Your Hugo Site to GitHub Pages

gohugoio/hugo: The world’s fastest framework for building websites

🚀 License Release Release 🚀

 

This action builds your Hugo Site (using the latest Hugo Extended) and pushes it to Github Pages.

This action also contains support for several external Hugo Helpers:

Name Support
reStructuredText ✔️
Pandoc ✔️
Asciidoctor ✔️
PostCSS ✔️
Pygments ✔️
Babel ✔️
Hugo Modules ✔️

If your site requires the use of another external helper, submit an issue and I'll try to add it.

This action is based on the Docker Image from chabad360/hugo-actions. If you need to do post-build/pre-upload steps, use that action.

Getting started

This is a basic workflow.yml to get you started (for more information scroll down to Inputs):

name: Publish Site

on:
  push:
    branches:
      - master

jobs:
  build-deploy:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout Repo
        uses: actions/checkout@master
        with:
          submodules: true
      - name: Publish Site
        uses: chabad360/hugo-gh-pages@master
        with:
          githubToken: ${{ secrets.PERSONAL_TOKEN }}

Inputs

Key Description Required Default
githubToken A Github Personal Access Token with repo permissions. ✔️ N/A
cname The custom domain name for your GH Pages Site. N/A
branch The branch to push the built site to. gh-pages
repo The repository to push the built site to. The current repo
hugoVersion The version Hugo to use (append extended_ to the begining to use the extended version). Latest Hugo Extended
args Arguments to pass to Hugo --gc --minify --cleanDestinationDir
siteDir Directory that your site is stored in. /github/workspace

Usage

- name: Publish Site
  uses: chabad360/hugo-gh-pages@master
  with:
    githubToken: ${{ secrets.PERSONAL_TOKEN }}
    # Remember to set this as a secret (i.e. secrets.PERSONAL_TOKEN).
    # Don't forget to set the secret value in the project settings.
    cname: mysite.com # Or anything else
    # Use if you have a custom domain for your site.
    branch: master # Or anything else
    # Use if your site is not hosted on the gh-pages branch.
    repo: you/you.github.io
    # Use if you're pushing to a different repo.
    # Dont add ".git" to the end of the URL (youl'll get 404s).
    hugoVersion: extended_0.58.3
    # Use if your site requires a specific version of Hugo.
    # Append "extended_" to the begining to use Hugo Extended.
    args: --gc --minify --cleanDestinationDir
    # Use if you want to pass some custom arguments to Hugo.
    siteDir: /github/workspace/site
    # Use this if your site isn't in the root of your repo.
    # The root of your repo can be found at /github/workspace

Credit

This project is based on mattbailey/actions-hugo

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].