publish.yml 874 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Build docs

on:
  push:
    branches:
      - master

jobs:
  publish:

    runs-on: ubuntu-latest

    steps:
      - name: Checkout code
        uses: actions/checkout@v1
        with:
         submodules: true
      - name: Install nightly toolchain
        uses: actions-rs/toolchain@v1
        with:
          toolchain: nightly
          components: rust-src
          override: true
      - name: Generate documentation
        uses: actions-rs/cargo@v1
        with:
          command: doc
28
          args: -Z build-std=core,alloc,panic_abort --target x86_64-unknown-hermit-kernel
29
30
31
32
33
      - name: Deploy documentation
        if: success()
        uses: crazy-max/ghaction-github-pages@v1
        with:
          target_branch: gh-pages
34
          build_dir: target/x86_64-unknown-hermit-kernel/doc
35
36
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}