mirror of
https://github.com/tuono-labs/tuono
synced 2026-07-26 05:12:46 -07:00
ci: get documentation tuono version automatically (#462)
This commit is contained in:
committed by
GitHub
parent
eb9039daa3
commit
362e1be58d
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user