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
+10 -2
View File
@@ -1,4 +1,4 @@
name: Deploy documentation website on AWS S3
name: Documentation Website Deploy on AWS S3
on:
push:
@@ -26,8 +26,16 @@ jobs:
- name: Setup rust
uses: actions-rust-lang/setup-rust-toolchain@v1
# ⬇️ Keep in sync with `.github/workflows/ci-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