mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-27 14:04:56 +01:00
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>
This commit is contained in:
commit
99e7b1a4fa
1 changed files with 10 additions and 7 deletions
17
.github/workflows/build.yml
vendored
17
.github/workflows/build.yml
vendored
|
@ -579,13 +579,16 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
langs=( en ru )
|
langs=( en ru )
|
||||||
devver=( dev )
|
devver=( dev )
|
||||||
# Query git for tagged releases, all releases start with "v"
|
# The latest stable must be the first element in the array
|
||||||
# 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)
|
|
||||||
vers=( 0.5.x 0.4.x )
|
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
|
# Create directories
|
||||||
td=$(mktemp -d)
|
td=$(mktemp -d)
|
||||||
mkdir -p $td/$devver/book/
|
mkdir -p $td/$devver/book/
|
||||||
|
@ -630,8 +633,8 @@ jobs:
|
||||||
rm -rf $src
|
rm -rf $src
|
||||||
done
|
done
|
||||||
|
|
||||||
# Create alias for the stable release
|
# Copy the stable book to the stable alias
|
||||||
ln -s $stable $td/stable
|
cp -r $td/$stable $td/stable
|
||||||
|
|
||||||
# Forward CNAME file
|
# Forward CNAME file
|
||||||
cp CNAME $td/
|
cp CNAME $td/
|
||||||
|
|
Loading…
Reference in a new issue