File tree Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -82,11 +82,13 @@ jobs:
82
82
- name : Add .nojekyll file
83
83
run : echo > processing4/build/javadoc/.nojekyll
84
84
85
- - name : Upload Javadocs artifact
86
- uses : actions/upload-pages-artifact@v3
85
+ - name : Cache Javadocs
86
+ uses : actions/cache@v4
87
87
with :
88
- name : github-pages
89
88
path : processing4/build/javadoc
89
+ key : javadocs-${{ env.commit_sha }}
90
+ restore-keys : |
91
+ javadocs-
90
92
91
93
- name : Clean up the processing4 directory
92
94
run : |
@@ -120,10 +122,21 @@ jobs:
120
122
with :
121
123
fetch-depth : 0
122
124
123
- - name : Copy Javadocs to /doc folder
125
+ - name : Restore Javadocs from cache
126
+ uses : actions/cache@v4
127
+ with :
128
+ path : doc
129
+ key : javadocs-${{ env.commit_sha }}
130
+ restore-keys : |
131
+ javadocs-
132
+
133
+ - name : Configure Git
124
134
run : |
125
135
git config --global user.name "github-actions[bot]"
126
136
git config --global user.email "github-actions[bot]@users.noreply.github.com"
137
+
138
+ - name : Copy Javadocs to /doc folder
139
+ run : |
127
140
mkdir -p doc
128
141
cp -r processing4/build/javadoc/* doc/
129
142
git add doc/
@@ -132,4 +145,3 @@ jobs:
132
145
else
133
146
git commit -m "Update Javadocs"
134
147
git push
135
- fi
You can’t perform that action at this time.
0 commit comments