From c6c2493e6ec3b3d709feddb3999a052d5887e7d3 Mon Sep 17 00:00:00 2001 From: transistor Date: Sun, 30 Apr 2023 21:33:02 -0700 Subject: [PATCH] Added github action --- .github/workflows/deploy-docs.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/deploy-docs.yml diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml new file mode 100644 index 0000000..d854fc6 --- /dev/null +++ b/.github/workflows/deploy-docs.yml @@ -0,0 +1,29 @@ +name: deploy-docs +on: + push: + branches: + - main +permissions: + contents: read + pages: write + id-token: write +jobs: + build-docs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + + - name: Build docs + run: cargo doc --document-private-items --workspace && mv target/doc . + + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 + with: + path: + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v1