Skip to content

Merge pull request #606 from rami3l/dependabot/cargo/tokio-1.29.1 #480

Merge pull request #606 from rami3l/dependabot/cargo/tokio-1.29.1

Merge pull request #606 from rami3l/dependabot/cargo/tokio-1.29.1 #480

Workflow file for this run

name: docs
on:
push:
branches: [master]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
- uses: Swatinem/rust-cache@v2
- name: Create
run: cargo doc --all-features --document-private-items
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./target/doc
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2