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