aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/doc.yml23
1 files changed, 23 insertions, 0 deletions
diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml
new file mode 100644
index 0000000..3008d44
--- /dev/null
+++ b/.github/workflows/doc.yml
@@ -0,0 +1,23 @@
+name: Pages
+
+on:
+ push:
+ branches:
+ - master
+ workflow_dispatch:
+
+jobs:
+ pages:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout sources
+ uses: actions/checkout@v4
+ - name: Build documentation
+ run: cargo doc --verbose
+ - name: Deploy documentation
+ uses: peaceiris/actions-gh-pages@v4
+ if: github.ref == 'refs/heads/master'
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ publish_dir: ./target/doc
+ force_orphan: true