From 8d7e525f63858d857a8b5439e60e966fd664b7e3 Mon Sep 17 00:00:00 2001 From: purplenicole730 Date: Thu, 19 Dec 2024 10:30:00 -0500 Subject: [PATCH 1/4] test --- .github/workflows/docs.yml | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 3d24f1eae..9f64872c7 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -4,13 +4,13 @@ on: workflow_dispatch: push: paths: - - 'src/**' - - 'README.md' + - "src/**" + - "README.md" branches: [main] jobs: generate-docs: - if: github.repository_owner == 'viamrobotics' + # if: github.repository_owner == 'viamrobotics' runs-on: ubuntu-latest container: image: ghcr.io/viamrobotics/canon:amd64 @@ -29,17 +29,29 @@ jobs: - name: Generate docs run: doxygen Doxyfile + - name: Check folder + run: ls etc/docs/api/current + + - name: test + run: echo 'test' > docs/_build/html/my-test-file.txt + + - name: Check folder 2 + run: ls etc/docs/api/current + - name: Upload artifacts uses: actions/upload-artifact@v3 with: name: html-docs path: 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: 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 From e554ee654dd4e2e402f7357fd0da4d3329daf3c7 Mon Sep 17 00:00:00 2001 From: purplenicole730 Date: Thu, 19 Dec 2024 10:30:58 -0500 Subject: [PATCH 2/4] upgrade to v4 --- .github/workflows/docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 9f64872c7..cbeb2b033 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -39,7 +39,7 @@ jobs: run: ls etc/docs/api/current - name: Upload artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: html-docs path: etc/docs/api/current From 42dfb6c8435a0e5a6dbb2d068d233c64ca798baa Mon Sep 17 00:00:00 2001 From: purplenicole730 Date: Thu, 19 Dec 2024 10:34:15 -0500 Subject: [PATCH 3/4] fix test --- .github/workflows/docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index cbeb2b033..287132195 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -33,7 +33,7 @@ jobs: run: ls etc/docs/api/current - name: test - run: echo 'test' > docs/_build/html/my-test-file.txt + run: echo 'test' > etc/docs/api/current/my-test-file.txt - name: Check folder 2 run: ls etc/docs/api/current From 50b8108533daac9986e3908d4b19ea0d5b68ea2d Mon Sep 17 00:00:00 2001 From: purplenicole730 Date: Thu, 19 Dec 2024 10:49:27 -0500 Subject: [PATCH 4/4] finalize --- .github/workflows/docs.yml | 30 +++++++++--------------------- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 287132195..084a53cf8 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -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 @@ -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