Merge pull request #209 from DataDog/vincent.roy/2822 #55
This file contains hidden or 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 Rust Docs | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Install Rust | |
run: rustup update stable | |
- name: Generate docs | |
working-directory: sds | |
run: cargo doc --no-deps | |
- name: Upload Rust docs | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: ./sds/target/doc | |
deploy: | |
runs-on: ubuntu-latest | |
needs: build | |
permissions: | |
pages: write | |
id-token: write | |
steps: | |
- name: Deploy to Github pages | |
uses: actions/deploy-pages@v4 |