Compare commits

..

4 Commits

Author SHA1 Message Date
frichtarik
7bdb538d29
Merge branch 'main' into frichtarik-updates 2024-04-15 14:46:24 +02:00
Filip Richtarik
c8e7c31e3b Update package-lock.json 2024-02-15 14:26:12 +01:00
frichtarik
b658e47d0a
Merge branch 'main' into frichtarik-updates 2024-02-06 20:34:26 +01:00
Filip Richtarik
e0c3fda2cf fix: downloads 2024-02-05 15:29:52 +01:00
3 changed files with 997 additions and 12261 deletions

View File

@ -24,7 +24,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'

View File

@ -151,27 +151,13 @@ This action fetches the latest version of Hugo by [hugo | Homebrew Formulae](htt
### ⭐️ Caching Hugo Modules
Insert a cache step before site-building as follows.
First, to maximize compatibility with all Hugo versions, let's define the variable `HUGO_CACHEDIR`:
```yaml
# * ...
jobs:
deploy:
runs-on: ubuntu-22.04
env:
HUGO_CACHEDIR: /tmp/hugo_cache # <- Define the env variable here, so that Hugo's cache dir is now predictible in your workflow and doesn't depend on the Hugo's version you're using.
# * ...
```
Now, let's add the cache action call just above the _Build_ step:
Note that with latest hugo version, the [cache dir location](https://gohugo.io/getting-started/configuration/#configure-cachedir) on a Linux-based operating system is `${HOME}/.cache`. On macOS, `${HOME}/Library/Caches` has the location.
```yaml
- uses: actions/cache@v4
with:
path: ${{ env.HUGO_CACHEDIR }} # <- Use the same env variable just right here
path: /home/runner/.cache/hugo_cache # <-- with hugo version v0.116.0 and above
# path: /tmp/hugo_cache # <-- with hugo version < v0.116.0
key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-hugomod-
@ -275,7 +261,8 @@ jobs:
hugo-version: '0.119.0'
extended: true
- uses: actions/setup-node@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'

13232
package-lock.json generated

File diff suppressed because it is too large Load Diff