Skip to content

Commit

Permalink
Add deply
Browse files Browse the repository at this point in the history
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
  • Loading branch information
azeey committed Jun 26, 2024
1 parent 9d1f060 commit 4ba68fb
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/nightly-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
workflow_dispatch:

jobs:
build_api_docs:
build:
name: 'Build API Docs (${{ matrix.gazebo_distribution }})'
runs-on: ubuntu-latest
container:
Expand Down Expand Up @@ -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

0 comments on commit 4ba68fb

Please sign in to comment.