Merge pull request #3099 from darwintree/parametize-eweb3 #41
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
name: Deploy Docs | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build docker image | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
file: .github/workflows/docs.Dockerfile | |
load: true | |
tags: doc-builder:latest | |
- name: Generate documentation | |
run: | | |
mkdir -p target | |
chmod -R 777 target | |
docker run --rm -v $(pwd)/target:/app/target -w /app doc-builder:latest \ | |
bash -c "RUSTDOCFLAGS='--enable-index-page -Z unstable-options' cargo +nightly-2024-01-29 doc --no-deps" | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./target/doc |