mirror of
https://github.com/tiennm99/blog.git
synced 2026-10-11 12:09:02 +00:00
Revert "chore(ci): disable Hugo build cache steps"
This reverts commit d2f7295864.
This commit is contained in:
1 parent
d2f7295864
commit
33a04bf2e8
1 file changed
+14
-14
+14
-14
@@ -70,14 +70,14 @@ jobs:
|
||||
- name: Configure Git
|
||||
run: |
|
||||
git config core.quotepath false
|
||||
# - name: Cache restore
|
||||
# id: cache-restore
|
||||
# uses: actions/cache/restore@v5
|
||||
# with:
|
||||
# path: ${{ runner.temp }}/hugo_cache
|
||||
# key: hugo-${{ github.run_id }}
|
||||
# restore-keys:
|
||||
# hugo-
|
||||
- name: Cache restore
|
||||
id: cache-restore
|
||||
uses: actions/cache/restore@v5
|
||||
with:
|
||||
path: ${{ runner.temp }}/hugo_cache
|
||||
key: hugo-${{ github.run_id }}
|
||||
restore-keys:
|
||||
hugo-
|
||||
- name: Build the site
|
||||
run: |
|
||||
hugo \
|
||||
@@ -85,12 +85,12 @@ jobs:
|
||||
--minify \
|
||||
--baseURL "https://miti99.com/" \
|
||||
--cacheDir "${{ runner.temp }}/hugo_cache"
|
||||
# - name: Cache save
|
||||
# id: cache-save
|
||||
# uses: actions/cache/save@v5
|
||||
# with:
|
||||
# path: ${{ runner.temp }}/hugo_cache
|
||||
# key: ${{ steps.cache-restore.outputs.cache-primary-key }}
|
||||
- name: Cache save
|
||||
id: cache-save
|
||||
uses: actions/cache/save@v5
|
||||
with:
|
||||
path: ${{ runner.temp }}/hugo_cache
|
||||
key: ${{ steps.cache-restore.outputs.cache-primary-key }}
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v4
|
||||
with:
|
||||
|
||||
Reference in new issue
Block a user