File tree Expand file tree Collapse file tree 1 file changed +28
-2
lines changed Expand file tree Collapse file tree 1 file changed +28
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ permissions:
17
17
jobs :
18
18
build :
19
19
runs-on : ubuntu-latest
20
-
21
20
steps :
22
21
- name : Checkout code
23
22
uses : actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2
@@ -31,13 +30,14 @@ jobs:
31
30
- name : Install dependencies
32
31
run : |
33
32
gem install bundler
34
- bundle install
33
+ bundle install --jobs 4 --retry 3
35
34
working-directory : ./site
36
35
37
36
- name : Install Node.js
38
37
uses : actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e
39
38
with :
40
39
node-version : 22.14.0
40
+ cache : ' npm'
41
41
42
42
- name : Install Wrangler
43
43
run : npm install -g wrangler
46
46
run : |
47
47
bundle exec jekyll build --source $GITHUB_WORKSPACE --destination $GITHUB_WORKSPACE/site/build --config $GITHUB_WORKSPACE/site/_config.yml
48
48
working-directory : ./site
49
+
50
+ - name : Upload build artifacts
51
+ uses : actions/upload-artifact@v3
52
+ with :
53
+ name : site-build
54
+ path : site/build
55
+
56
+ deploy :
57
+ needs : build
58
+ runs-on : ubuntu-latest
59
+ if : github.event_name == 'push' && github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch'
60
+ steps :
61
+ - name : Download build artifacts
62
+ uses : actions/download-artifact@v3
63
+ with :
64
+ name : site-build
65
+ path : site/build
66
+
67
+ - name : Install Node.js
68
+ uses : actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e
69
+ with :
70
+ node-version : 22.14.0
71
+ cache : ' npm'
72
+
73
+ - name : Install Wrangler
74
+ run : npm install -g wrangler
49
75
50
76
- name : Publish
51
77
uses :
cloudflare/[email protected]
You can’t perform that action at this time.
0 commit comments