Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions .github/workflows/photon-api-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ permissions:

jobs:
build_demo:
name: Build PhotonClient Demo
defaults:
run:
working-directory: photon-client
Expand All @@ -42,6 +43,7 @@ jobs:
path: photon-client/dist/

run_api_docs:
name: Build API Docs
runs-on: "ubuntu-22.04"
steps:
- name: Checkout code
Expand All @@ -55,38 +57,34 @@ jobs:
with:
java-version: 17
distribution: temurin

- name: Build javadocs/doxygen
run: |
chmod +x gradlew
./gradlew photon-docs:generateJavaDocs photon-docs:doxygen

- uses: actions/upload-artifact@v4
with:
name: built-docs
path: photon-docs/build/docs

publish_api_docs:
name: Publish API Docs
needs: [run_api_docs]

runs-on: ubuntu-22.04
steps:

# Download docs artifact
- uses: actions/download-artifact@v4
with:
name: built-docs

- run: find .
- name: Publish docs to development
- name: Publish Docs To Development
if: github.ref == 'refs/heads/main'
uses: up9cloud/action-rsync@v1.4
env:
HOST: ${{ secrets.WEBMASTER_SSH_HOST }}
USER: ${{ secrets.WEBMASTER_SSH_USERNAME }}
KEY: ${{secrets.WEBMASTER_SSH_KEY}}
TARGET: /var/www/html/photonvision-docs/development
- name: publish docs to release
- name: Publish Docs To Release
if: startsWith(github.ref, 'refs/tags/v')
uses: up9cloud/action-rsync@v1.4
env:
Expand All @@ -96,8 +94,8 @@ jobs:
TARGET: /var/www/html/photonvision-docs/release/

publish_demo:
name: Publish PhotonClient Demo
needs: [build_demo]

runs-on: ubuntu-22.04
steps:
- uses: actions/download-artifact@v4
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: PhotonVision Sphinx Documentation Checks
name: PhotonVision ReadTheDocs Checks

on:
push:
Expand All @@ -16,6 +16,7 @@ env:

jobs:
build:
name: Build and Check Docs
runs-on: ubuntu-22.04

steps:
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Website Build
name: Website

on:
push:
Expand All @@ -12,6 +12,7 @@ on:

jobs:
rsync:
name: Build and Sync Files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -33,15 +34,15 @@ jobs:
TARGET: /var/www/html/photonvision-website

format-check:
name: Check formatting
name: Check Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
- name: Install packages
- name: Install Packages
run: npm ci
working-directory: website
- name: Build project
- name: Run Formatting Check
run: npx prettier -c .
working-directory: website
Loading