Skip to content

Commit 4b40fb3

Browse files
author
Tim Middleton
committed
Correct error in release where stable.txt was not updated
1 parent 76a4756 commit 4b40fb3

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

.github/workflows/release.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ jobs:
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
@@ -75,6 +77,20 @@ jobs:
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

scripts/release-ghpages.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,14 @@ git checkout --track origin/gh-pages
3737
git config pull.rebase true
3838
git pull
3939

40-
# Create docs directory
4140
pwd
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

4742
if [ -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
5548
else
5649
# Must be RC
5750
git add -A docs/${VERSION}/*

0 commit comments

Comments
 (0)