Skip to content

Rust Docs + GH workflow cleanup (#320) #1

Rust Docs + GH workflow cleanup (#320)

Rust Docs + GH workflow cleanup (#320) #1

Workflow file for this run

name: Deploy Documentation
on:
push:
branches:
- main
tags:
- v1.*
jobs:
deploy-user-guide:
if: github.repository == 'aws/aws-lc-rs'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
submodules: 'recursive'
- name: Install Stable Rust Toolchain
uses: dtolnay/rust-toolchain@stable
id: toolchain
- name: Install Nightly Rust Toolchain
uses: dtolnay/rust-toolchain@nightly
id: toolchain

Check failure on line 22 in .github/workflows/deploy-docs.yml

View workflow run for this annotation

GitHub Actions / Deploy Documentation

Invalid workflow file

The workflow is not valid. .github/workflows/deploy-docs.yml (Line: 22, Col: 13): The identifier 'toolchain' may not be used more than once within the same scope.
- name: Set Rust toolchain override
run: rustup override set ${{ steps.toolchain.outputs.name }}
- uses: actions/setup-go@v4
with:
go-version: '>=1.18'
- name: Build and Test User Guide
run: |
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: 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: book/book