File tree Expand file tree Collapse file tree 2 files changed +17
-8
lines changed Expand file tree Collapse file tree 2 files changed +17
-8
lines changed Original file line number Diff line number Diff line change 6565 DIR=`pwd`
6666 cd build/_output/docs
6767 zip -r ../docs.zip *
68+ # Save the docs.zip
69+ cp ../docs.zip /tmp
6870
6971 - name : Build Binaries
7072 shell : bash
7577 mkdir -p ${CLI_TMP_BIN} || true
7678 cp -R bin/* ${CLI_TMP_BIN}
7779
80+ - name : Release GitHub Pages Stable.txt
81+ shell : bash
82+ run : |
83+ git config --local user.name "Github Action"
84+ git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com"
85+ make release-ghpages
86+ # Restore the Binaries directories
87+ CLI_TMP_BIN=/tmp/coherence-cli-bin
88+ mkdir bin || true
89+ cp -R ${CLI_TMP_BIN}/* bin/
90+ # Restore the docs.zip
91+ mkdir -p ./build/_output
92+ mv /tmp/docs.zip ./build/_output/docs.zip
93+
7894 - name : Create Release
7995 uses : actions/create-release@v1
8096 id : create_release
Original file line number Diff line number Diff line change @@ -37,21 +37,14 @@ git checkout --track origin/gh-pages
3737git config pull.rebase true
3838git pull
3939
40- # Create docs directory
4140pwd
42- rm -rf docs/${VERSION} / || true
43- mkdir -p docs/${VERSION} || true
44- ls ${BUILD_OUTPUT} /docs/
45- cp -R ${BUILD_OUTPUT} /docs/* docs/${VERSION} /
4641
4742if [ -z " ` echo $VERSION | grep RC` " ] ; then
4843 # Proper release so update stable.txt
4944 echo $VERSION > stable.txt
5045
5146 # Update latest docs
52- rm -rf docs/latest || true
53- cp -R docs/${VERSION} docs/latest/
54- git add -A stable.txt docs/latest/* docs/${VERSION} /*
47+ git add -A stable.txt
5548else
5649 # Must be RC
5750 git add -A docs/${VERSION} /*
You can’t perform that action at this time.
0 commit comments