mirror of
https://github.com/YaLTeR/niri.git
synced 2025-10-06 00:23:14 +02:00
ci: Add niri-ipc rustdoc generation
This commit is contained in:
25
.github/workflows/ci.yml
vendored
25
.github/workflows/ci.yml
vendored
@@ -207,3 +207,28 @@ jobs:
|
|||||||
lfs: true
|
lfs: true
|
||||||
show-progress: false
|
show-progress: false
|
||||||
- uses: Andrew-Chen-Wang/github-wiki-action@86138cbd6328b21d759e89ab6e6dd6a139b22270
|
- 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
|
||||||
|
6
resources/rustdoc-index.html
Normal file
6
resources/rustdoc-index.html
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv=refresh content=0;url=niri_ipc/index.html />
|
||||||
|
</head>
|
||||||
|
</html>
|
Reference in New Issue
Block a user