[go: up one dir, main page]

time 0.2.8

Date and time library. Fully interoperable with the standard library. Mostly compatible with #![no_std].
Documentation
name: Documentation
on:
  push:
    branches:
      - master

jobs:
  documentation:
    name: Documentation
    runs-on: ubuntu-latest

    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: Cache target
        uses: actions/cache@v1
        env:
          cache-name: target
        with:
          path: ./target
          key: ubuntu-latest-docs-target-nightly

      - name: Cache toolchain
        uses: actions/cache@v1
        env:
          cache-name: toolchain
        with:
          path: /usr/share/rust
          key: ubuntu-latest-toolchain-nightly

      - name: Install toolchain
        uses: actions-rs/toolchain@v1
        with:
          profile: minimal
          toolchain: nightly # rust-lang/rust#43466, rust-lang/rust#43781
          override: true

      - name: Run `cargo doc --all-features`
        uses: actions-rs/cargo@v1
        with:
          command: doc
          args: --all-features

      - name: Publish documentation
        uses: JamesIves/github-pages-deploy-action@releases/v2
        env:
          ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
          BRANCH: gh-pages
          FOLDER: target/doc