From 1eeba9dab0135bdf92b96bedee7c6b5334dd8050 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Tue, 24 Aug 2021 22:10:32 +0200 Subject: [PATCH] add a script to generate the doc --- .github/workflows/docs.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 000000000..fff4926fe --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,38 @@ +name: Docs + +on: + push: + branches: + - main + schedule: + - cron: "0 2 * * *" + +jobs: + docs: + name: generate the doc + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + with: + repository: uutils/coreutils + path: './coreutils' + fetch-depth: 0 + + - name: Install `rust` toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + default: true + profile: minimal + + - name: Build Documentation + run: | + cd coreutils + cargo doc --no-deps --all-features --workspace + + - name: Deploy Docs + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./coreutils/target/doc