File tree Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Original file line number Diff line number Diff line change 5
5
echo " Cannot release docs without GITHUB_ACTIONS set"
6
6
exit 0;
7
7
fi
8
+ if [ " ${SOURCE_TAG} " = " " ];
9
+ then
10
+ echo " Cannot release docs without SOURCE_TAG set"
11
+ exit 0;
12
+ fi
8
13
REPO=" https://github.com/parse-community/Parse-SDK-JS"
9
14
10
15
rm -rf docs
@@ -13,16 +18,16 @@ cd docs
13
18
git pull origin gh-pages
14
19
cd ..
15
20
16
- DEST=" master"
21
+ RELEASE=" release"
22
+ VERSION=" ${SOURCE_TAG} "
17
23
18
- if [ " ${SOURCE_TAG} " != " " ];
19
- then
20
- DEST=" ${SOURCE_TAG} "
21
- # change the default page to the latest
22
- echo " <meta http-equiv='refresh' content='0; url=/Parse-SDK-JS/api/${DEST} '>" > " docs/api/index.html"
23
- fi
24
+ # change the default page to the latest
25
+ echo " <meta http-equiv='refresh' content='0; url=/Parse-SDK-JS/api/${VERSION} '>" > " docs/api/index.html"
24
26
25
27
npm run docs
26
28
27
- mkdir -p " docs/api/${DEST} "
28
- cp -R out/* " docs/api/${DEST} "
29
+ mkdir -p " docs/api/${RELEASE} "
30
+ cp -R out/* " docs/api/${RELEASE} "
31
+
32
+ mkdir -p " docs/api/${VERSION} "
33
+ cp -R out/* " docs/api/${VERSION} "
You can’t perform that action at this time.
0 commit comments