Skip to content

Commit

Permalink
ci: deploy github pages
Browse files Browse the repository at this point in the history
Add guides and api documentation to github pages.

Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
  • Loading branch information
PavanNikhilesh committed Apr 24, 2024
1 parent 6bcbae1 commit 04357d8
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand All @@ -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: |
Expand All @@ -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 \
Expand Down

0 comments on commit 04357d8

Please sign in to comment.