1
mirror of https://github.com/jakejarvis/hugo-docker.git synced 2025-07-03 13:16:38 -04:00

Test action by building Hugo docs site (#1)

This commit is contained in:
2020-02-28 21:52:42 -05:00
parent 0c6f8a4a90
commit 4386d9140e
3 changed files with 31 additions and 0 deletions

7
.dockerignore Normal file
View File

@ -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 vendored Normal file
View File

@ -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

View File

@ -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