Skip to content

Commit

Permalink
Update docs-workflow.yaml
Browse files Browse the repository at this point in the history
Add symlink update step to docs workflow for latest version.

Closes #83

Signed-off-by: Osman Hadzic <osman.hadzic@secomind.com>
  • Loading branch information
osmanhadzic committed Nov 20, 2024
1 parent 96041ac commit d9895cd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/docs-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ jobs:
rm -rf docs/$DOCS_DIRNAME
mkdir -p docs/$DOCS_DIRNAME
cp -r astarte-device-sdk-csharp/docs/out/html/* docs/$DOCS_DIRNAME/
- name: Update symlink
working-directory: ./docs/device-sdks/csharp
run: |
rm -f "latest"
latest_version=$(ls -d * | grep -v snapshot | sort -V | tail -n 1)
if [ -z $latest_version ]; then latest_version="snapshot"; fi
ln -sf "$latest_version" latest
- name: Commit files
working-directory: ./docs
run: |
Expand Down

0 comments on commit d9895cd

Please sign in to comment.