Skip to content

Commit

Permalink
create latest link on publish
Browse files Browse the repository at this point in the history
remove old docs before copy
  • Loading branch information
rettigl committed Jan 12, 2025
1 parent 34f0fa4 commit bb43e40
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bb43e40

Please sign in to comment.