diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-09-04 12:27:43 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-09-04 12:39:23 +0300 |
| commit | a2c855315c09ae5b4cc686a4605da7d5fdb99b48 (patch) | |
| tree | dc3519a618801ff5a485bb467c86b257a813f6eb | |
| parent | 6c4e4b374a48a5d3d46a7b7e9fded128232ccfbe (diff) | |
| download | niri-a2c855315c09ae5b4cc686a4605da7d5fdb99b48.tar.gz niri-a2c855315c09ae5b4cc686a4605da7d5fdb99b48.tar.bz2 niri-a2c855315c09ae5b4cc686a4605da7d5fdb99b48.zip | |
ci: Add niri-ipc rustdoc generation
| -rw-r--r-- | .github/workflows/ci.yml | 25 | ||||
| -rw-r--r-- | resources/rustdoc-index.html | 6 |
2 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8710ae34..cfc23208 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -207,3 +207,28 @@ jobs: lfs: true show-progress: false - uses: Andrew-Chen-Wang/github-wiki-action@86138cbd6328b21d759e89ab6e6dd6a139b22270 + + rustdoc: + needs: build + permissions: + contents: write + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + with: + show-progress: false + + - uses: dtolnay/rust-toolchain@stable + + - name: Generate documentation + run: cargo doc --no-deps -p niri-ipc + + - run: cp ./resources/rustdoc-index.html ./target/doc/index.html + + - name: Deploy documentation + if: github.ref == 'refs/heads/main' + uses: peaceiris/actions-gh-pages@v4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./target/doc + force_orphan: true diff --git a/resources/rustdoc-index.html b/resources/rustdoc-index.html new file mode 100644 index 00000000..6ed346de --- /dev/null +++ b/resources/rustdoc-index.html @@ -0,0 +1,6 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv=refresh content=0;url=niri_ipc/index.html /> + </head> +</html> |
