-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: get documentation
tuono
version automatically (#462)
- Loading branch information
1 parent
eb9039d
commit 362e1be
Showing
2 changed files
with
19 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 [email protected] | ||
run: cargo install tuono@${{ steps.get_tuono_version.outputs.version }} | ||
# ⬆️ | ||
|
||
- name: Build project | ||
working-directory: ./apps/documentation | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 [email protected] | ||
run: cargo install tuono@${{ steps.get_tuono_version.outputs.version }} | ||
# ⬆️ | ||
|
||
- name: Build project | ||
working-directory: ./apps/documentation | ||
|