From 4ba68fbc30e5d366f503539846f0615d424bdaac Mon Sep 17 00:00:00 2001 From: "Addisu Z. Taddese" Date: Wed, 26 Jun 2024 18:56:08 -0500 Subject: [PATCH] Add deply Signed-off-by: Addisu Z. Taddese --- .github/workflows/nightly-upload.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/nightly-upload.yml b/.github/workflows/nightly-upload.yml index 95924badfd..8f98ad90fa 100644 --- a/.github/workflows/nightly-upload.yml +++ b/.github/workflows/nightly-upload.yml @@ -8,7 +8,7 @@ on: workflow_dispatch: jobs: - build_api_docs: + build: name: 'Build API Docs (${{ matrix.gazebo_distribution }})' runs-on: ubuntu-latest container: @@ -44,13 +44,22 @@ jobs: rm -rf sdformat sudo apt-get -y install $(sort -u $(find . -iname 'packages-'${{ matrix.ubuntu_distribution}}'.apt' -o -iname 'packages.apt' | grep -v '/\.git/') | tr '\n' ' ') cd .. - colcon build --merge-install --event-handlers console_cohesion+ --cmake-args -DBUILD_DOCS=ON --cmake-target doc + colcon build --merge-install --event-handlers console_cohesion+ --cmake-args -DBUILD_DOCS=ON -DBUILD_TESTING=OFF --cmake-target doc --packages-up-to-regex gz-math mkdir output - for d in build/*; do - cp -a $d/doxygen/html/* output/$d + for d in $(find build -type d -maxdepth 1); do + cp -a $d/doxygen/html/* output/$(basename $d) done - uses: actions/upload-artifact@v4 if: always() with: name: ${{ matrix.gazebo_distribution }}_api_docs path: ws/output + + deploy: + needs: build + runs-on: ubuntu-latest + name: Deploy + steps: + - uses: actions/download-artifact@v4 + - name: Display structure of downloaded files + run: ls -R