From 04357d841ba840c5a1219206381fdf3fd7bbe04b Mon Sep 17 00:00:00 2001 From: Pavan Nikhilesh Date: Wed, 24 Apr 2024 15:41:15 +0530 Subject: [PATCH] ci: deploy github pages Add guides and api documentation to github pages. Signed-off-by: Pavan Nikhilesh --- .github/workflows/build.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3e17d3e..b4c629d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,6 +5,11 @@ on: schedule: - cron: '0 0 * * 1' +permissions: + contents: write + pages: write + id-token: write + jobs: ubuntu-cn10k-build: name: ubuntu-cn10k-arm64 @@ -77,7 +82,9 @@ jobs: apt-get install -y libfdt-dev libjansson-dev apt-get install -y libpcap-dev libssl-dev ninja-build python3-pip apt-get install -y python3-pyelftools python3-setuptools python3-wheel zlib1g-dev - apt-get install -y gcc-13 + apt-get install -y gcc-13 bzip2-doc icu-devtools libacl1-dev libattr1-dev + apt-get install -y libbz2-dev libgmp-dev libgmpxx4ldbl libicu-dev liblz4-dev + apt-get install -y liblzma-dev libxml2-dev libzstd-dev nettle-dev run: | source /artifacts/env apt-get install -y ./"dpdk-${DPDK_BASE_PKG_VERSION}-cn10k${PKG_POSTFIX}_${DPDK_PKG_VERSION}_arm64.deb" @@ -100,6 +107,9 @@ jobs: mv "${PWD}/install" "${PWD}/dao-cn10k${PKG_POSTFIX}_${PKG_VERSION_NAME}_arm64" dpkg --build "dao-cn10k${PKG_POSTFIX}_${PKG_VERSION_NAME}_arm64" cp "dao-cn10k${PKG_POSTFIX}_${PKG_VERSION_NAME}_arm64.deb" /artifacts/. + mkdir -p gen_docs + mv build/doc/html gen_docs/guides + mv build/doc/api/html gen_docs/api - name: Export version name id: artifacts run: | @@ -121,6 +131,12 @@ jobs: tag_name: ${{ steps.artifacts.outputs.TAG }} files: | ${{ github.workspace }}/artifacts/dao-cn10k${{ steps.artifacts.outputs.PKG_POSTFIX }}_${{ steps.artifacts.outputs.PKG_VERSION_NAME }}_arm64.deb + - name: Upload Pages artifact + uses: actions/upload-pages-artifact@v3 + with: + path: ${{ github.workspace }}/gen_docs + - name: Deploy Github Pages + uses: actions/deploy-pages@v4.0.5 - name: Dispatch package update event run: | curl -L \