diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 86ca0fa18..9ce3e1df3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,7 +62,7 @@ jobs: run: | sudo apt update sudo apt upgrade -y - sudo apt install --no-install-recommends build-essential ninja-build doxygen graphviz + sudo apt install --no-install-recommends build-essential ninja-build - name: Install latest gcc (Linux) if: matrix.compiler == 'gcc-latest' @@ -142,13 +142,3 @@ jobs: uses: softprops/action-gh-release@v1 with: files: artifact/health_gps_${{ matrix.platform }}.zip - - - name: Doxygen release API deploy - if: matrix.compiler == 'gcc-default' && startsWith(github.ref, 'refs/tags/') - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ${{github.workspace}}/out/build/linux-release/src/html - destination_dir: html - enable_jekyll: true - commit_message: ${{ github.ref_name }} - ${{ github.event.head_commit.message }} diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index c3175eaf6..b3da6edca 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -38,6 +38,23 @@ jobs: destination: ./_site - name: Upload artifact uses: actions/upload-pages-artifact@v2 + - name: Install build dependencies + run: | + sudo apt update + sudo apt upgrade -y + sudo apt install --no-install-recommends build-essential ninja-build doxygen graphviz + - name: Install VCPKG + run: | + git clone https://github.com/Microsoft/vcpkg.git + cd vcpkg + ./bootstrap-vcpkg.sh -disableMetrics + - name: Configure HealthGPS + run: | + cmake --preset=linux-release + - name: Build with doxygen + run: | + ninja -C out/build/linux-release/ doxygen-docs + cp -r out/build/linux-release/src/html _site/html # Deployment job deploy: