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:
Jimmy Cai 2023-08-15 14:08:28 +02:00 committed by GitHub
parent 7f5d5ac7ac
commit 0204461286
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 15 deletions

View File

@ -16,31 +16,21 @@ jobs:
contents: write
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Cache Hugo resources
uses: actions/cache@v2
uses: actions/cache@v3
env:
cache-name: cache-hugo-resources
with:
path: resources
key: ${{ env.cache-name }}
- uses: actions/setup-go@v2
- uses: actions/setup-go@v4
with:
go-version: "^1.17.0"
- 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
uses: peaceiris/actions-hugo@v2
with:
@ -51,7 +41,7 @@ jobs:
run: hugo --minify --gc
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.4
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: public

View File

@ -18,7 +18,7 @@ jobs:
contents: write
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2