Skip to content

Commit

Permalink
Add supprot to publish docs to github pages
Browse files Browse the repository at this point in the history
This helps get a shareable link, easier to review rendered docs.

Signed-off-by: Chaitanya Tata <[email protected]>
  • Loading branch information
krish2718 committed Dec 9, 2024
1 parent 76ee003 commit 9710a87
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/docbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,30 @@ jobs:
nrf70_bm_ws/nrf70-bm/nrf70_bm_lib/*.zip
nrf70_bm_ws/nrf70-bm/nrf70_bm_lib/monitor*.txt
nrf70_bm_ws/nrf70-bm/nrf70_bm_lib/pr.txt
- name: Setup pages
if: github.event_name != 'pull_request'
uses: actions/configure-pages@v4

- name: Upload pages artifact
if: github.event_name != 'pull_request'
uses: actions/upload-pages-artifact@v3
with:
path: nrf70_bm_ws/nrf70-bm/nrf70_bm_lib/doc/build/html

- name: Upload artifacts
if: github.event_name == 'pull_request'
uses: actions/upload-artifact@v4
with:
path: nrf70_bm_ws/nrf70-bm/nrf70_bm_lib/doc/build/html

deploy:
runs-on: ubuntu-latest
needs: build
if: github.event_name != 'pull_request'
permissions:
pages: write
id-token: write
steps:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4

0 comments on commit 9710a87

Please sign in to comment.