mirror of
https://github.com/tiennm99/blog.git
synced 2026-10-13 08:15:15 +00:00
feat: update cache in github actions
This commit is contained in:
1 parent
508793bf75
commit
e60d5001a7
1 file changed
+4
-2
@@ -46,7 +46,9 @@ jobs:
|
||||
with:
|
||||
path: |
|
||||
resources
|
||||
key: ${{ runner.os }}-resources
|
||||
key: ${{ runner.os }}-resources-${{ github.run_id }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-resources-
|
||||
- name: Build with Hugo
|
||||
env:
|
||||
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
|
||||
@@ -62,7 +64,7 @@ jobs:
|
||||
with:
|
||||
path: |
|
||||
resources
|
||||
key: ${{ runner.os }}-resources
|
||||
key: ${{ runner.os }}-resources-${{ github.run_id }}
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
|
||||
Reference in new issue
Block a user