This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change 19
19
20
20
if [[ $BETA = " true" ]]; then
21
21
echo " Update documentation for the beta release"
22
- cp -r out/master out/beta
22
+ cp -r out/master/ * out/beta
23
23
fi
24
24
25
25
# Generate version index that is shown as root index page
@@ -33,12 +33,11 @@ cd out
33
33
git config user.name " GHA CI"
34
34
git config user.email " gha@ci.invalid"
35
35
36
- if git diff --exit-code --quiet; then
37
- echo " No changes to the output on this push; exiting."
38
- exit 0
39
- fi
40
-
41
36
if [[ -n $TAG_NAME ]]; then
37
+ if git diff --exit-code --quiet -- $TAG_NAME /; then
38
+ echo " No changes to the output on this push; exiting."
39
+ exit 0
40
+ fi
42
41
# Add the new dir
43
42
git add " $TAG_NAME "
44
43
# Update the symlink
@@ -47,9 +46,17 @@ if [[ -n $TAG_NAME ]]; then
47
46
git add versions.json
48
47
git commit -m " Add documentation for ${TAG_NAME} release: ${SHA} "
49
48
elif [[ $BETA = " true" ]]; then
49
+ if git diff --exit-code --quiet -- beta/; then
50
+ echo " No changes to the output on this push; exiting."
51
+ exit 0
52
+ fi
50
53
git add beta
51
54
git commit -m " Automatic deploy to GitHub Pages (beta): ${SHA} "
52
55
else
56
+ if git diff --exit-code --quiet; then
57
+ echo " No changes to the output on this push; exiting."
58
+ exit 0
59
+ fi
53
60
git add .
54
61
git commit -m " Automatic deploy to GitHub Pages: ${SHA} "
55
62
fi
You can’t perform that action at this time.
0 commit comments