From 1009c159377501f979965291ac163409116b6e8e Mon Sep 17 00:00:00 2001 From: Justin W Smith <103147162+justsmth@users.noreply.github.com> Date: Fri, 26 Jan 2024 08:26:12 -0500 Subject: [PATCH] Deploy docs for tags --- .github/workflows/deploy-docs.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 31bf617281c..3b5b9683788 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -3,6 +3,8 @@ on: push: branches: - main + tags: + - v1.* jobs: deploy-user-guide: if: github.repository == 'aws/aws-lc-rs' @@ -28,14 +30,12 @@ jobs: curl -L https://github.com/rust-lang/mdBook/releases/download/v0.4.34/mdbook-v0.4.34-x86_64-unknown-linux-gnu.tar.gz | tar xz ./mdbook build book ./mdbook test book - - name: Deploy User Guide - uses: JamesIves/github-pages-deploy-action@v4 - with: - folder: book/book - name: Build Documentation run: cargo +nightly doc --features fips,unstable --no-deps --workspace + - name: Copy docs + run: | + cp --recursive target/doc -t book/book/rustdocs/${{ github.ref_name }} - name: Deploy Docs uses: JamesIves/github-pages-deploy-action@v4 with: - folder: target/doc - target-folder: rustdocs/${{ github.ref_name }} + folder: book/book