chore: update GitHub Action dependencies to the latest versions (#28)
Remove the step which creates cache for Go modules since it's integrated now in actions/setup-go@v4
This commit is contained in:
parent
7f5d5ac7ac
commit
0204461286
18
.github/workflows/deploy.yml
vendored
18
.github/workflows/deploy.yml
vendored
@ -16,31 +16,21 @@ jobs:
|
|||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Cache Hugo resources
|
- name: Cache Hugo resources
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
env:
|
env:
|
||||||
cache-name: cache-hugo-resources
|
cache-name: cache-hugo-resources
|
||||||
with:
|
with:
|
||||||
path: resources
|
path: resources
|
||||||
key: ${{ env.cache-name }}
|
key: ${{ env.cache-name }}
|
||||||
|
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: "^1.17.0"
|
go-version: "^1.17.0"
|
||||||
- run: go version
|
- run: go version
|
||||||
|
|
||||||
- name: Cache Go Modules
|
|
||||||
uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.cache/go-build
|
|
||||||
~/go/pkg/mod
|
|
||||||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-go-
|
|
||||||
|
|
||||||
- name: Setup Hugo
|
- name: Setup Hugo
|
||||||
uses: peaceiris/actions-hugo@v2
|
uses: peaceiris/actions-hugo@v2
|
||||||
with:
|
with:
|
||||||
@ -51,7 +41,7 @@ jobs:
|
|||||||
run: hugo --minify --gc
|
run: hugo --minify --gc
|
||||||
|
|
||||||
- name: Deploy 🚀
|
- name: Deploy 🚀
|
||||||
uses: JamesIves/github-pages-deploy-action@4.1.4
|
uses: JamesIves/github-pages-deploy-action@v4
|
||||||
with:
|
with:
|
||||||
branch: gh-pages
|
branch: gh-pages
|
||||||
folder: public
|
folder: public
|
||||||
|
2
.github/workflows/update-theme.yml
vendored
2
.github/workflows/update-theme.yml
vendored
@ -18,7 +18,7 @@ jobs:
|
|||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup Hugo
|
- name: Setup Hugo
|
||||||
uses: peaceiris/actions-hugo@v2
|
uses: peaceiris/actions-hugo@v2
|
||||||
|
Loading…
Reference in New Issue
Block a user