From ffd2ffbf45f0d2cccff36e68730c347b82555455 Mon Sep 17 00:00:00 2001 From: David Komer Date: Thu, 18 Jun 2020 18:50:21 +0300 Subject: [PATCH] [rs] build master docs Deploys to gh_pages branch in `doc/` folder * closes #379 --- .github/workflows/docs.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 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..d921ff6f4 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,23 @@ +name: Documentation + +on: + push: + branches: [ master ] + +jobs: + bundle: + runs-on: ubuntu-latest + steps: + - name: checkout repo + uses: actions/checkout@v1 + + - name: build documentation + run: cargo doc --lib --all-features + + - name: Deploy 🚀 + uses: JamesIves/github-pages-deploy-action@releases/v3 + with: + ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} + BRANCH: gh-pages + FOLDER: target/doc + TARGET_FOLDER: doc