From 0204461286a9b10d29ae2ea90e74031d1ad0b8fc Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Tue, 15 Aug 2023 14:08:28 +0200 Subject: [PATCH] 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 --- .github/workflows/deploy.yml | 18 ++++-------------- .github/workflows/update-theme.yml | 2 +- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 644c9a0..5471f5c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 diff --git a/.github/workflows/update-theme.yml b/.github/workflows/update-theme.yml index 76b589b..4b0262a 100644 --- a/.github/workflows/update-theme.yml +++ b/.github/workflows/update-theme.yml @@ -18,7 +18,7 @@ jobs: contents: write steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup Hugo uses: peaceiris/actions-hugo@v2