mirror of
https://github.com/peaceiris/actions-hugo.git
synced 2026-01-25 20:32:19 +01:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b7618725f9 | ||
|
|
38f4938bc6 | ||
|
|
d8740dd53b |
9
.github/workflows/push.yml
vendored
9
.github/workflows/push.yml
vendored
@@ -19,3 +19,12 @@ jobs:
|
|||||||
docker build . --file Dockerfile --tag ${DOCKER_IMAGE} &&
|
docker build . --file Dockerfile --tag ${DOCKER_IMAGE} &&
|
||||||
docker run ${DOCKER_IMAGE} version ||
|
docker run ${DOCKER_IMAGE} version ||
|
||||||
(echo -e "\e[31m[${GITHUB_WORKFLOW}] failed to build\e[m" && exit 1)
|
(echo -e "\e[31m[${GITHUB_WORKFLOW}] failed to build\e[m" && exit 1)
|
||||||
|
|
||||||
|
hadolint:
|
||||||
|
runs-on: macOS-10.14
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
- name: hadolint
|
||||||
|
run: |
|
||||||
|
brew install hadolint
|
||||||
|
hadolint ./Dockerfile
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
FROM golang:1.13.0-buster
|
FROM golang:1.13.0-buster
|
||||||
|
|
||||||
ENV HUGO_VERSION='0.58.1'
|
ENV HUGO_VERSION='0.58.2'
|
||||||
ENV HUGO_NAME="hugo_extended_${HUGO_VERSION}_Linux-64bit"
|
ENV HUGO_NAME="hugo_extended_${HUGO_VERSION}_Linux-64bit"
|
||||||
ENV HUGO_URL="https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/${HUGO_NAME}.tar.gz"
|
ENV HUGO_URL="https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/${HUGO_NAME}.tar.gz"
|
||||||
RUN wget "${HUGO_URL}" && \
|
RUN wget "${HUGO_URL}" && \
|
||||||
|
|||||||
@@ -16,12 +16,14 @@
|
|||||||
|
|
||||||
## Getting started
|
## Getting started
|
||||||
|
|
||||||
### Create `.github/workflows/push.yml`
|
### Create `.github/workflows/gh-pages.yml`
|
||||||
|
|
||||||
An example with [GitHub Actions for deploying to GitHub Pages with Static Site Generators]
|
An example with [GitHub Actions for deploying to GitHub Pages with Static Site Generators]
|
||||||
|
|
||||||
[GitHub Actions for deploying to GitHub Pages with Static Site Generators]: https://github.com/peaceiris/actions-gh-pages
|
[GitHub Actions for deploying to GitHub Pages with Static Site Generators]: https://github.com/peaceiris/actions-gh-pages
|
||||||
|
|
||||||
|
[](https://github.com/peaceiris/actions-gh-pages)
|
||||||
|
|
||||||

|

|
||||||

|

|
||||||
|
|
||||||
@@ -40,7 +42,7 @@ jobs:
|
|||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
uses: peaceiris/actions-hugo@v0.58.1
|
uses: peaceiris/actions-hugo@v0.58.2
|
||||||
with:
|
with:
|
||||||
args: --gc --minify --cleanDestinationDir
|
args: --gc --minify --cleanDestinationDir
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user