mirror of
https://github.com/peaceiris/actions-hugo.git
synced 2025-05-04 22:35:27 +08:00
Bump actions/cache from v1 to v2
This commit is contained in:
parent
21c525440c
commit
6eea37b1f9
12
README.md
12
README.md
@ -70,7 +70,7 @@ For the first deployment, we have to do this operation: [First Deployment with `
|
|||||||
[](https://github.com/peaceiris/actions-gh-pages)
|
[](https://github.com/peaceiris/actions-gh-pages)
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
name: github pages
|
name: GitHub Pages
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -227,7 +227,7 @@ The alpine base Hugo Docker image is provided on the following repository.
|
|||||||
|
|
||||||
Here is an example workflow for the [google/docsy] Hugo theme.
|
Here is an example workflow for the [google/docsy] Hugo theme.
|
||||||
This theme needs `autoprefixer` and `postcss-cli` to build a project.
|
This theme needs `autoprefixer` and `postcss-cli` to build a project.
|
||||||
The following workflow is tested on [google/docsy-example].
|
The following workflow is tested with [google/docsy-example].
|
||||||
|
|
||||||
[google/docsy]: https://github.com/google/docsy
|
[google/docsy]: https://github.com/google/docsy
|
||||||
[google/docsy-example]: https://github.com/google/docsy-example
|
[google/docsy-example]: https://github.com/google/docsy-example
|
||||||
@ -235,7 +235,7 @@ The following workflow is tested on [google/docsy-example].
|
|||||||
A workflow for the Hugo Babel pipeline is also the same as follows.
|
A workflow for the Hugo Babel pipeline is also the same as follows.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
name: github pages
|
name: GitHub Pages
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -266,7 +266,7 @@ jobs:
|
|||||||
node-version: '14'
|
node-version: '14'
|
||||||
|
|
||||||
- name: Cache dependencies
|
- name: Cache dependencies
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ~/.npm
|
path: ~/.npm
|
||||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||||
@ -292,7 +292,7 @@ jobs:
|
|||||||
Here is an example workflow for a Hugo project using `asciidoctor`.
|
Here is an example workflow for a Hugo project using `asciidoctor`.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
name: github pages
|
name: GitHub Pages
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -345,7 +345,7 @@ jobs:
|
|||||||
cf. [Gitinfo fails on unicode filename · Issue #3071 · gohugoio/hugo](https://github.com/gohugoio/hugo/issues/3071)
|
cf. [Gitinfo fails on unicode filename · Issue #3071 · gohugoio/hugo](https://github.com/gohugoio/hugo/issues/3071)
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
name: github pages
|
name: GitHub Pages
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
Loading…
Reference in New Issue
Block a user