File tree Expand file tree Collapse file tree 1 file changed +12
-16
lines changed Expand file tree Collapse file tree 1 file changed +12
-16
lines changed Original file line number Diff line number Diff line change @@ -55,34 +55,30 @@ jobs:
55
55
uses : actions/setup-node@v3
56
56
with :
57
57
node-version : " 18.20.4"
58
- # cache: ${{ steps.detect-package-manager.outputs.manager }}
58
+ cache : ${{ steps.detect-package-manager.outputs.manager }}
59
59
- name : Setup Pages
60
60
id : pages
61
61
uses : actions/configure-pages@v3
62
62
with :
63
- # Automatically inject pathPrefix in your Gatsby configuration file.
64
- #
65
- # You may remove this line if you want to manage the configuration yourself.
66
63
static_site_generator : gatsby
67
- # - name: Restore cache
68
- # uses: actions/cache@v3
69
- # with:
70
- # path: |
71
- # public
72
- # .cache
73
- # key: ${{ runner.os }}-gatsby-build-${{ hashFiles('public') }}
74
- # restore-keys: |
75
- # ${{ runner.os }}-gatsby-build-
76
- - name : Clean cache
77
- run : yarn cache clean
64
+ - name : Restore cache
65
+ uses : actions/cache@v3
66
+ with :
67
+ path : |
68
+ public
69
+ .cache
70
+ node_modules
71
+ key : ${{ runner.os }}-gatsby-build-${{ hashFiles('package-lock.json', 'yarn.lock') }}
72
+ restore-keys : |
73
+ ${{ runner.os }}-gatsby-build-
78
74
- name : Install dependencies
79
75
run : ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
80
76
- name : Build with Gatsby
81
77
env :
82
78
PREFIX_PATHS : " true"
83
79
run : ${{ steps.detect-package-manager.outputs.manager }} run build
84
80
- name : Upload artifact
85
- uses : actions/upload-pages-artifact@v2
81
+ uses : actions/upload-pages-artifact@v3
86
82
with :
87
83
path : ./public
88
84
You can’t perform that action at this time.
0 commit comments