App: Fix Endoscopy Tool Tracking C++ Test Config (#477) #2
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
name: Generate github pages | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
ref: 'github.io' | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Clone HoloHub Repository (Latest) | |
run: git clone https://github.com/nvidia-holoscan/holohub | |
- name: Run gather.py | |
shell: bash | |
run: | | |
cd holohub | |
python ./utilities/gather_metadata.py --output aggregate_metadata.json | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '14' | |
- name: Install Dependencies | |
run: npm install | |
- name: Build | |
run: npm run build | |
- name: Move aggregate_metadata.json | |
run: mv holohub/aggregate_metadata.json dist/ | |
- name: Stage dist folder | |
run: git add dist -f | |
- name: Commit Changes | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git commit -m "Update dist folder" | |
- name: Deploy to gh-pages | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: dist |