Skip to content

Commit

Permalink
finalize
Browse files Browse the repository at this point in the history
  • Loading branch information
purplenicole730 committed Dec 19, 2024
1 parent 42dfb6c commit 50b8108
Showing 1 changed file with 9 additions and 21 deletions.
30 changes: 9 additions & 21 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
generate-docs:
# if: github.repository_owner == 'viamrobotics'
if: github.repository_owner == 'viamrobotics'
runs-on: ubuntu-latest
container:
image: ghcr.io/viamrobotics/canon:amd64
Expand All @@ -29,29 +29,17 @@ jobs:
- name: Generate docs
run: doxygen Doxyfile

- name: Check folder
run: ls etc/docs/api/current

- name: test
run: echo 'test' > etc/docs/api/current/my-test-file.txt

- name: Check folder 2
run: ls etc/docs/api/current

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: html-docs
path: etc/docs/api/current

- name: Check folder 3
run: ls etc/docs/api/current

# - name: Deploy docs
# uses: peaceiris/actions-gh-pages@v3
# if: github.ref == 'refs/heads/main'
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: etc/docs/api/current
# publish_branch: docs-gh_pages
# cname: cpp.viam.dev
- name: Deploy docs
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: etc/docs/api/current
publish_branch: docs-gh_pages
cname: cpp.viam.dev

0 comments on commit 50b8108

Please sign in to comment.