Skip to content

Commit

Permalink
Release v0.57.0 (#8)
Browse files Browse the repository at this point in the history
* migrate: GitHub Actions beta v2 (HCL to YAML)

* add: Pull Request template

* upgrade: actions

* enhance: GitHub Actions config

* update: readme

* remove: patreon image
  • Loading branch information
peaceiris authored Aug 15, 2019
1 parent b101526 commit b8232e8
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 40 deletions.
3 changes: 3 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- [ ] upgrade: hugo to `v0..`
- [ ] update: tag on readme
- [ ] release: `v0..` with **master** branch
9 changes: 0 additions & 9 deletions .github/main.workflow

This file was deleted.

13 changes: 13 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Push workflow

on: [push]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Docker build
run: docker build -t peaceiris/actions-hugo .
- name: Check Hugo version
run: docker run peaceiris/actions-hugo:latest version
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ LABEL "repository"="https://github.com/peaceiris/actions-hugo"
LABEL "homepage"="https://github.com/peaceiris/actions-hugo"
LABEL "maintainer"="peaceiris"

ENV HUGO_VERSION='0.56.3'
ENV HUGO_VERSION='0.57.0'
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"
RUN wget "${HUGO_URL}" && \
Expand Down
56 changes: 26 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

## Getting started

### Create `main.workflow`
### Create `.github/workflows/push.yml`

An example with [GitHub Actions for deploying to GitHub Pages with Static Site Generators]

Expand All @@ -23,39 +23,37 @@ An example with [GitHub Actions for deploying to GitHub Pages with Static Site G
![peaceiris/actions-hugo latest version](https://img.shields.io/github/release/peaceiris/actions-hugo.svg?label=peaceiris%2Factions-hugo)
![peaceiris/actions-gh-pages latest version](https://img.shields.io/github/release/peaceiris/actions-gh-pages.svg?label=peaceiris%2Factions-gh-pages)

```hcl
workflow "GitHub Pages" {
on = "push"
resolves = ["deploy"]
}
action "is-branch-master" {
uses = "actions/bin/filter@master"
args = "branch master"
}
action "build" {
needs = "is-branch-master"
uses = "peaceiris/[email protected]"
args = ["--gc", "--minify", "--cleanDestinationDir"]
}
action "deploy" {
needs = "build"
uses = "peaceiris/[email protected]"
env = {
PUBLISH_DIR = "./public"
PUBLISH_BRANCH = "gh-pages"
}
secrets = ["ACTIONS_DEPLOY_KEY"]
}
```yaml
name: Main workflow

on:
push:
branches:
- master

jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: build
uses: peaceiris/[email protected]
with:
args: --gc --minify --cleanDestinationDir
- name: deploy
uses: peaceiris/[email protected]
if: contains(github.ref, 'master')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./public
```
## License
[MIT License - peaceiris/actions-hugo]
- [MIT License - peaceiris/actions-hugo]
[MIT License - peaceiris/actions-hugo]: https://github.com/peaceiris/actions-hugo/blob/master/LICENSE
Expand All @@ -64,5 +62,3 @@ action "deploy" {
## About the author
- [peaceiris's homepage](https://peaceiris.com/)

<a href="https://www.patreon.com/peaceiris"><img src="./images/patreon.jpg" alt="peaceiris - Patreon" width="150px"></a>
Binary file removed images/patreon.jpg
Binary file not shown.

0 comments on commit b8232e8

Please sign in to comment.