forked from omg-dds/dds-rtps
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Generate Doc | ||
run-name: ${{ github.actor }} is generating doc in GitHub Actions 🚀 | ||
on: | ||
workflow_run: | ||
workflows: ["Upload Artifact"] | ||
types: | ||
- completed | ||
jobs: | ||
generate_doc: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Get Artifact | ||
uses: dawidd6/action-download-artifact@v3 | ||
with: | ||
name: detailed_report | ||
workflow: upload_artifact.yml | ||
|
||
- name: Move the detailed report to output folder | ||
run: | | ||
mkdir -p html/detailed_report | ||
mv *.html html/detailed_report/ | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11.4' | ||
|
||
- name: Create virtual environment | ||
run: python -m venv .venv | ||
|
||
- name: Install Google API dependencies | ||
run: | | ||
source .venv/bin/activate | ||
pip install google-api-python-client | ||
- name: Get latest XLSX and ZIP urls | ||
env: | ||
GCP_CREDENTIAL_STR: ${{ secrets.GCP_CREDENTIAL_STR }} | ||
DRIVE_FOLDER_ID: ${{ secrets.DRIVE_FOLDER_ID }} | ||
run: python get_latest_file_urls.py gdrive_url.py | ||
|
||
- name: Install Sphinx dependencies | ||
run: | | ||
pip install sphinx sphinx_rtd_theme | ||
- name: Build documentation | ||
run: | | ||
sphinx-build -b html doc html | ||
working-directory: ${{ github.workspace }} | ||
- name: Attach html documentation | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: interoperability_report | ||
path: | | ||
./html/*.* | ||