Skip to content

Commit

Permalink
ci: Add niri-ipc rustdoc generation
Browse files Browse the repository at this point in the history
  • Loading branch information
YaLTeR committed Sep 4, 2024
1 parent 6c4e4b3 commit 62f2af1
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,3 +207,26 @@ jobs:
lfs: true
show-progress: false
- uses: Andrew-Chen-Wang/github-wiki-action@86138cbd6328b21d759e89ab6e6dd6a139b22270

rustdoc:
needs: build
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 changes: 6 additions & 0 deletions resources/rustdoc-index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv=refresh content=0;url=niri_ipc/index.html />
</head>
</html>

0 comments on commit 62f2af1

Please sign in to comment.