From 3b8e125d80c4cec4a9468a093c6c0272b2f1dfd6 Mon Sep 17 00:00:00 2001 From: Dave Gallant Date: Tue, 2 Jan 2024 14:38:13 -0500 Subject: [PATCH] Update workflow --- .github/workflows/publish.yml | 18 +++++++++--------- go.mod | 5 +---- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index cc9938aa..71027216 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -4,8 +4,6 @@ on: push: branches: - main - paths-ignore: - - templates/** jobs: publish: @@ -23,21 +21,23 @@ jobs: uses: actions/setup-node@v4 with: node-version: "18" + cache: "npm" + # The action defaults to search for the dependency file (package-lock.json, + # npm-shrinkwrap.json or yarn.lock) in the repository root, and uses its + # hash as a part of the cache key. + # https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#caching-packages-data + cache-dependency-path: "**/package-lock.json" - - name: Install Hugo + - name: Setup Hugo uses: peaceiris/actions-hugo@v2 with: hugo-version: "0.121.1" extended: true - - name: Install npm Packages - run: npm ci - - - name: Build Hugo - run: hugo --minify + - run: npm ci + - run: hugo --minify - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./public diff --git a/go.mod b/go.mod index d8e84668..2019a687 100644 --- a/go.mod +++ b/go.mod @@ -2,7 +2,4 @@ module davegallant.github.io go 1.21 -require ( - github.com/davegallant/hugo-theme-gruvbox v0.0.0-20240102171826-d67d7957b276 // indirect - github.com/schnerring/hugo-mod-json-resume v0.0.0-20231224014047-e651a547c19a // indirect -) +require github.com/davegallant/hugo-theme-gruvbox v0.0.0-20240102155230-cac2894e8557 // indirect