refactor: Simplify map_or
#17
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: Generate and Deploy Docs | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Rust toolchain | |
| run: | | |
| rustup update nightly | |
| rustup default nightly | |
| - name: Download Proto Files and Install Protoc | |
| uses: ./.github/actions/protos | |
| with: | |
| cdn: ${{ secrets.PROTOS_CDN }} | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build docs | |
| run: cargo doc --no-deps --verbose | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./target/doc | |
| publish_branch: gh-pages | |
| user_name: github-actions[bot] | |
| user_email: 41898282+github-actions[bot]@users.noreply.github.com |