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 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

View file

@ -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