File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,45 +42,42 @@ jobs:
4242 uses : actions/configure-pages@v5
4343
4444 - name : Install Node.js dependencies
45- run : |
46- cd docs
47- [[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true
45+ working-directory : ./docs
46+ run : " [[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
4847
4948 - name : Cache Restore
5049 id : cache-restore
51- uses : actions/cache@v4
50+ uses : actions/cache/restore @v4
5251 with :
5352 path : |
5453 ${{ runner.temp }}/hugo_cache
5554 key : hugo-${{ github.run_id }}
56- restore-keys :
57- - hugo-
55+ restore-keys : hugo-
5856
5957 - name : Configure Git
6058 run : git config core.quotepath false
6159
6260 - name : Build with Hugo
61+ working-directory : ./docs
6362 run : |
6463 hugo \
6564 --gc \
6665 --minify \
67- --source docs \
68- --destination docs/public \
6966 --baseURL "${{ steps.pages.outputs.base_url }}/" \
7067 --cacheDir "${{ runner.temp }}/hugo_cache"
7168
7269 - name : Cache Save
7370 id : cache-save
74- uses : actions/cache@v4
71+ uses : actions/cache/save @v4
7572 with :
7673 path : |
7774 ${{ runner.temp }}/hugo_cache
78- key : ${{ steps.cache-restore.outputs.cache-hit -key }}
75+ key : ${{ steps.cache-restore.outputs.cache-primary -key }}
7976
8077 - name : Upload Pages Artifact
8178 uses : actions/upload-pages-artifact@v3
8279 with :
83- path : docs/public
80+ path : ./ docs/public
8481
8582 deploy :
8683 environment :
Original file line number Diff line number Diff line change 11<!DOCTYPE html>
22< html >
33< head >
4- < meta http-equiv ="refresh " content ="0; url=/ docs " />
4+ < meta http-equiv ="refresh " content ="0; url=docs/ " />
55</ head >
66< body >
77</ body >
You can’t perform that action at this time.
0 commit comments