mirror of
https://github.com/peaceiris/actions-hugo.git
synced 2026-01-26 04:42:16 +01:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
79fb16c8e4 | ||
|
|
d08dcd0297 | ||
|
|
1daa8a255f | ||
|
|
46fbb349ce | ||
|
|
d079faea7e | ||
|
|
b9842008ed | ||
|
|
021efbc871 |
4
.github/PULL_REQUEST_TEMPLATE.md
vendored
4
.github/PULL_REQUEST_TEMPLATE.md
vendored
@@ -1,3 +1,3 @@
|
|||||||
- [ ] upgrade: hugo to `v0..`
|
- [ ] upgrade: hugo to ``
|
||||||
- [ ] update: tag on readme
|
- [ ] update: tag on readme
|
||||||
- [ ] release: `v0..` with **master** branch
|
- [ ] release: `` with **master** branch
|
||||||
|
|||||||
15
.github/workflows/push.yml
vendored
15
.github/workflows/push.yml
vendored
@@ -1,13 +1,18 @@
|
|||||||
name: Push workflow
|
name: Push workflow
|
||||||
|
|
||||||
on: [push]
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- invalid-tag
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
- name: Docker build
|
- name: Docker build and print Hugo version
|
||||||
run: docker build -t peaceiris/actions-hugo .
|
if: github.event.deleted == false
|
||||||
- name: Check Hugo version
|
run: |
|
||||||
run: docker run peaceiris/actions-hugo:latest version
|
docker build -t peaceiris/actions-hugo . &&
|
||||||
|
docker run peaceiris/actions-hugo:latest version ||
|
||||||
|
(echo -e "\e[31mfailed to build\e[m" && exit 1)
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ LABEL "repository"="https://github.com/peaceiris/actions-hugo"
|
|||||||
LABEL "homepage"="https://github.com/peaceiris/actions-hugo"
|
LABEL "homepage"="https://github.com/peaceiris/actions-hugo"
|
||||||
LABEL "maintainer"="peaceiris"
|
LABEL "maintainer"="peaceiris"
|
||||||
|
|
||||||
ENV HUGO_VERSION='0.57.0'
|
ENV HUGO_VERSION='0.57.1'
|
||||||
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}" && \
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
- name: build
|
- name: build
|
||||||
uses: peaceiris/actions-hugo@v0.57.0
|
uses: peaceiris/actions-hugo@v0.57.1
|
||||||
with:
|
with:
|
||||||
args: --gc --minify --cleanDestinationDir
|
args: --gc --minify --cleanDestinationDir
|
||||||
- name: deploy
|
- name: deploy
|
||||||
|
|||||||
Reference in New Issue
Block a user