Skip to content

update web page path. #2

update web page path.

update web page path. #2

Workflow file for this run

name: Rust
on:
push:
branches: ["feature/add-cargo-doc"]
pull_request:
branches: ["feature/add-cargo-doc"]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
# - name: Run tests
# run: cargo test --verbose
doc:
runs-on: ubuntu-latest
needs: build
if: github.event_name == 'push' || github.event.pull_request.merged == true
steps:
- uses: actions/checkout@v2
- name: Run doc
run: cargo doc --no-deps
- name: Deploy
uses: actions/upload-pages-artifact@v1
with:
path: target/doc/motor_lib
deploy:
needs: doc
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1