Skip to content

Commit

Permalink
ci: Encode build-docker->deploy-docs dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
colluca committed Oct 3, 2024
1 parent 68ec175 commit c975a3d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 29 deletions.
24 changes: 23 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
# Docs #
########

docs:
build-docs:
name: Build documentation
runs-on: ubuntu-22.04
needs: build-docker
Expand All @@ -59,6 +59,28 @@ jobs:
- name: Build docs
run: make docs

deploy-docs:
name: Deploy documentation
runs-on: ubuntu-22.04
needs: build-docker
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
container:
image: ghcr.io/pulp-platform/snitch_cluster:${{ github.ref_name }}
steps:
- uses: actions/checkout@v2
# For some reason, the checkout is done by a different user,
# than that deploying to Github (root, possibly due to Docker).
# So we need to set the repository as a safe directory.
- name: Git config safe.directory
run: |
git config --global --add safe.directory $GITHUB_WORKSPACE
- name: Generate documentation sources
run: |
make doc-srcs
make doxygen-docs
- name: Build and deploy documentation
run: mkdocs gh-deploy --force

#####################
# Python unit tests #
#####################
Expand Down
28 changes: 0 additions & 28 deletions .github/workflows/publish-docs.yml

This file was deleted.

0 comments on commit c975a3d

Please sign in to comment.