Browse Source

Test action by building Hugo docs site (#1)

pull/1/head
Jake Jarvis 2 years ago
parent
commit
4386d9140e
Signed by: jake GPG Key ID: 2B0C9CF251E69A39
  1. 7
      .dockerignore
  2. 22
      .github/workflows/build-docs.yml
  3. 2
      README.md

7
.dockerignore

@ -0,0 +1,7 @@
# Ignore all files...
*
# ...except readme and licenses:
!LICENSE.md
!README.md
!THIRD_PARTY_NOTICE.md

22
.github/workflows/build-docs.yml

@ -0,0 +1,22 @@
name: Build docs
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout action
uses: actions/checkout@master
with:
fetch-depth: 1
- name: Checkout gohugoio/hugoDocs
uses: actions/checkout@master
with:
repository: gohugoio/hugoDocs
path: docs/
fetch-depth: 1
- name: Build site
uses: ./
with:
args: --source docs/ --minify --verbose

2
README.md

@ -1,5 +1,7 @@
# GitHub Action for [Hugo](https://github.com/gohugoio/hugo) ✏️
![Build docs](https://github.com/jakejarvis/hugo-build-action/workflows/Build%20docs/badge.svg)
This is a simple GitHub Action that contains [Hugo](https://github.com/gohugoio/hugo), the popular static site generator. The [extended version](https://gohugo.io/troubleshooting/faq/#i-get-tocss-this-feature-is-not-available-in-your-current-hugo-version) is now bundled by default. Unlike other actions, this action includes releases going back to [v0.27](https://github.com/gohugoio/hugo/releases/tag/v0.27) (September 2017) for any compatibility requirements.
## Usage

Loading…
Cancel
Save