From 8e1b9185942693b27b694f80a33c5367a6b551df Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Thu, 27 Oct 2022 11:30:13 -0600 Subject: [PATCH] Add github pages task --- .github/workflows/pages.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/pages.yml diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 0000000..d111798 --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,21 @@ +name: Pages + +on: + push: + branches: + - main + +jobs: + pages: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Build documentation + run: cargo doc --verbose + - name: Deploy documentation + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./target/doc