aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-10-05 10:46:54 +0000
committerGitHub <noreply@github.com>2020-10-05 10:46:54 +0000
commit99e7b1a4fa89f9a4d0d703dc05768c0ca8185598 (patch)
tree37d3e22761ba6b42f34edddfcc675b3ed9e010e2 /.github
parent4eb4c4e7b21402de7294670116da77475f48e0a2 (diff)
parenta38952fbd4f972c2016093a852a35aadc479ac72 (diff)
Merge #380
380: Use a full copy of the book instead of symlink r=korken89 a=AfoHT Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml17
1 files changed, 10 insertions, 7 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 56183c3..1d5773e 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -579,13 +579,16 @@ jobs:
run: |
langs=( en ru )
devver=( dev )
- # Query git for tagged releases, all releases start with "v"
- # followed by MAJOR.MINOR.PATCH, see semver.org
- # Then remove all pre-releases/tags with hyphens (-).
- # The latest release is last, finally trim "v" and PATCH
- stable=$(git tag | grep "^v" | grep -v "-" | tail -n 1 | cut -c2-4)
+ # The latest stable must be the first element in the array
vers=( 0.5.x 0.4.x )
+ # All releases start with "v"
+ # followed by MAJOR.MINOR.PATCH, see semver.org
+ # Retain MAJOR.MINOR as $stable
+ stable=${vers%.*}
+
+ echo "Stable version: $stable"
+
# Create directories
td=$(mktemp -d)
mkdir -p $td/$devver/book/
@@ -630,8 +633,8 @@ jobs:
rm -rf $src
done
- # Create alias for the stable release
- ln -s $stable $td/stable
+ # Copy the stable book to the stable alias
+ cp -r $td/$stable $td/stable
# Forward CNAME file
cp CNAME $td/