ci: get documentation tuono version automatically (#462)

This commit is contained in:
Marco Pasqualetti
2025-01-29 17:32:35 +01:00
committed by GitHub
parent eb9039daa3
commit 362e1be58d
2 changed files with 19 additions and 3 deletions
+9 -1
View File
@@ -40,8 +40,16 @@ jobs:
- name: Setup rust
uses: actions-rust-lang/setup-rust-toolchain@v1
# ⬇️ Keep in sync with `.github/workflows/deploy-documentation.yml`
- name: Read tuono version used by the documentation
id: get_tuono_version
run: |
VERSION=$(pnpm ls tuono --filter=documentation | grep "tuono " | sed -E 's/.* ([0-9]+\.[0-9]+\.[0-9]+).*/\1/')
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Install tuono
run: cargo install tuono@0.17.6
run: cargo install tuono@${{ steps.get_tuono_version.outputs.version }}
# ⬆️
- name: Build project
working-directory: ./apps/documentation