-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create an html webpage that is uploaded as a github page (#39)
- Loading branch information
Showing
42 changed files
with
772 additions
and
29 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
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,46 @@ | ||
name: 2 - Upload Test Results to Drive | ||
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀 | ||
on: workflow_dispatch | ||
jobs: | ||
upload_artifact: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Get Artifact | ||
uses: dawidd6/action-download-artifact@v3 | ||
with: | ||
name: interoperability_report | ||
workflow: main.yml | ||
- name: Create files to upload | ||
run: | | ||
current_date=$(cat timestamp) | ||
mv index.html interoperability_report.html | ||
for file in *; do \ | ||
mv "$file" "${file%.*}_$current_date.${file##*.}"; \ | ||
done | ||
zip interoperability_report_$current_date.zip * | ||
mkdir report_$current_date | ||
mv *.zip report_$current_date/ | ||
mv *.xlsx report_$current_date/ | ||
- name: Upload zip artifact | ||
uses: adityak74/google-drive-upload-git-action@main | ||
with: | ||
credentials: ${{ secrets.GCP_CREDENTIAL }} | ||
filename: report_*/*.zip | ||
folderId: ${{ secrets.DRIVE_FOLDER_ID }} | ||
overwrite: "true" | ||
mirrorDirectoryStructure: "true" | ||
- name: Upload spreadsheet | ||
uses: adityak74/google-drive-upload-git-action@main | ||
with: | ||
credentials: ${{ secrets.GCP_CREDENTIAL }} | ||
filename: report_*/*.xlsx | ||
folderId: ${{ secrets.DRIVE_FOLDER_ID }} | ||
overwrite: "true" | ||
mirrorDirectoryStructure: "true" | ||
mimeType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | ||
- name: Attach detailed report html | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: detailed_report | ||
path: | | ||
./interoperability_report*.html |
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,55 @@ | ||
name: 3 - Generate Test Report | ||
run-name: ${{ github.actor }} is generating doc in GitHub Actions 🚀 | ||
on: workflow_dispatch | ||
jobs: | ||
generate_doc: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- 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 doc/_static/html/ | ||
mv *.html doc/_static/html/ | ||
ls doc/_static/html | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11.4' | ||
|
||
- name: Create virtual environment | ||
run: | | ||
python -m venv .venv | ||
source .venv/bin/activate | ||
- name: Setting up environment | ||
run: | | ||
pip install -r requirements_doc.txt | ||
- 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: Build documentation | ||
run: sphinx-build -b html doc html | ||
|
||
- name: Zip the documentation | ||
run: | | ||
cd html | ||
zip -r ../documentation.zip . | ||
- name: Attach html documentation | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: documentation | ||
path: documentation.zip |
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,42 @@ | ||
# Simple workflow for deploying static content to GitHub Pages | ||
name: 4 - Publish Test Report (GitHub pages) | ||
|
||
on: workflow_dispatch | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
# Single deploy job since we're just deploying | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Get Artifact | ||
uses: dawidd6/action-download-artifact@v3 | ||
with: | ||
name: documentation | ||
workflow: generate_doc.yml | ||
- run: | | ||
mkdir html | ||
unzip documentation.zip -d html | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v5 | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: './html/' | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
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
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,21 @@ | ||
Copyright and license policy | ||
============================ | ||
|
||
License | ||
------- | ||
|
||
Use and redistribution is source and binary forms is permitted subject to the | ||
OMG-DDS INTEROPERABILITY TESTING LICENSE found at the following URL: | ||
|
||
https://github.com/omg-dds/dds-rtps/blob/master/LICENSE.md | ||
|
||
Copyright holders | ||
----------------- | ||
|
||
© 2024 Real-Time Innovations, Inc. | ||
© 2024 Atostek Oy. | ||
© 2024 Proyectos y Sistemas de Mantenimiento SL (eProsima). | ||
© 2024 Kongsberg Defence & Aerospace. | ||
© 2024 Object Computing, Inc. | ||
© 2024 OpenDDS Foundation. | ||
© 2024 Twin Oaks Computing, Inc. |
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
Oops, something went wrong.