From bb43e404c25ec968e83d7f9c99541f50db455c06 Mon Sep 17 00:00:00 2001 From: rettigl Date: Sun, 12 Jan 2025 22:22:45 +0100 Subject: [PATCH] create latest link on publish remove old docs before copy --- .github/workflows/documentation.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 2bdc8cee..17db4420 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -131,10 +131,14 @@ jobs: VERSION=${GITHUB_REF#refs/tags/} echo "folder=sed/$VERSION" >> $GITHUB_OUTPUT rm docs-repo/sed/stable + rm -rf docs-repo/sed/latest ln -s -r docs-repo/sed/$VERSION docs-repo/sed/stable + ln -s -r docs-repo/sed/$VERSION docs-repo/sed/latest elif [[ $GITHUB_REF == refs/heads/main ]]; then + rm -rf docs-repo/sed/latest echo "folder=sed/latest" >> $GITHUB_OUTPUT else + rm -rf docs-repo/sed/develop echo "folder=sed/develop" >> $GITHUB_OUTPUT fi