Skip to content

Commit f945a1b

Browse files
committed
actions/upload-pages-artifact@v3 로 업데이트
1 parent 3ce1fe1 commit f945a1b

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

.github/workflows/gatsby.yml

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -55,34 +55,30 @@ jobs:
5555
uses: actions/setup-node@v3
5656
with:
5757
node-version: "18.20.4"
58-
# cache: ${{ steps.detect-package-manager.outputs.manager }}
58+
cache: ${{ steps.detect-package-manager.outputs.manager }}
5959
- name: Setup Pages
6060
id: pages
6161
uses: actions/configure-pages@v3
6262
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.
6663
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-
7874
- name: Install dependencies
7975
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
8076
- name: Build with Gatsby
8177
env:
8278
PREFIX_PATHS: "true"
8379
run: ${{ steps.detect-package-manager.outputs.manager }} run build
8480
- name: Upload artifact
85-
uses: actions/upload-pages-artifact@v2
81+
uses: actions/upload-pages-artifact@v3
8682
with:
8783
path: ./public
8884

0 commit comments

Comments
 (0)