Skip to content

Commit 50b8108

Browse files
finalize
1 parent 42dfb6c commit 50b8108

File tree

1 file changed

+9
-21
lines changed

1 file changed

+9
-21
lines changed

.github/workflows/docs.yml

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
jobs:
1212
generate-docs:
13-
# if: github.repository_owner == 'viamrobotics'
13+
if: github.repository_owner == 'viamrobotics'
1414
runs-on: ubuntu-latest
1515
container:
1616
image: ghcr.io/viamrobotics/canon:amd64
@@ -29,29 +29,17 @@ jobs:
2929
- name: Generate docs
3030
run: doxygen Doxyfile
3131

32-
- name: Check folder
33-
run: ls etc/docs/api/current
34-
35-
- name: test
36-
run: echo 'test' > etc/docs/api/current/my-test-file.txt
37-
38-
- name: Check folder 2
39-
run: ls etc/docs/api/current
40-
4132
- name: Upload artifacts
4233
uses: actions/upload-artifact@v4
4334
with:
4435
name: html-docs
4536
path: etc/docs/api/current
4637

47-
- name: Check folder 3
48-
run: ls etc/docs/api/current
49-
50-
# - name: Deploy docs
51-
# uses: peaceiris/actions-gh-pages@v3
52-
# if: github.ref == 'refs/heads/main'
53-
# with:
54-
# github_token: ${{ secrets.GITHUB_TOKEN }}
55-
# publish_dir: etc/docs/api/current
56-
# publish_branch: docs-gh_pages
57-
# cname: cpp.viam.dev
38+
- name: Deploy docs
39+
uses: peaceiris/actions-gh-pages@v3
40+
if: github.ref == 'refs/heads/main'
41+
with:
42+
github_token: ${{ secrets.GITHUB_TOKEN }}
43+
publish_dir: etc/docs/api/current
44+
publish_branch: docs-gh_pages
45+
cname: cpp.viam.dev

0 commit comments

Comments
 (0)