mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-05 08:17:04 +00:00
update-gh-pages.sh: create 'stable' symlink
Create/update a symlink to the documentation of the latest released version (if one exists).
This commit is contained in:
parent
a08fb66fa7
commit
502a8c83a9
1 changed files with 3 additions and 0 deletions
|
@ -103,6 +103,9 @@ fi
|
|||
# Switch to work in the gh-pages worktree
|
||||
cd "$build_dir"
|
||||
|
||||
_stable=`(ls -d1 v*/ || :) | sort -n | tail -n1`
|
||||
[ -n "$_stable" ] && ln -sfT "$_stable" stable
|
||||
|
||||
if [ -z "`git status --short`" ]; then
|
||||
echo "No new content, gh-pages branch already up-to-date"
|
||||
exit 0
|
||||
|
|
Loading…
Add table
Reference in a new issue