diff --git a/.github/workflows/publish_pages.yml b/.github/workflows/publish_pages.yml new file mode 100644 index 00000000..e87ca1e5 --- /dev/null +++ b/.github/workflows/publish_pages.yml @@ -0,0 +1,25 @@ +name: Publish Pages +on: + push: + branches: + - master + # only rebuild RustDoc when source code has changed, or the workflow is modified + paths: + - /**/src/** + - .github/workflows + +jobs: + publish_doc: + runs-on: ubuntu-latest + steps: + # check out the repo + - uses: actions/checkout@v1 + # This step references the directory that contains the action. + - name: build docs + run: cargo doc --all + - name: publish + uses: maxheld83/ghpages@v0.2.1 + env: + BUILD_DIR=target/doc + +