Skip to content

Commit

Permalink
Added separate ci docs pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-palmer committed Apr 19, 2024
1 parent 8f4a4bf commit e17914e
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 11 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci-docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Check Documentation

on:
push:
branches:
- main
- 33-feature-ros2-control
pull_request:
paths:
- docs/**
workflow_dispatch:

jobs:
build-docs:
name: Build documentation
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup npm
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: docs/package-lock.json

- name: Install dependencies
run: npm ci
working-directory: ./docs

- name: Build website
run: npm run build
working-directory: ./docs
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Check Implementation

on:
push:
Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,6 @@ on:
push:
branches:
- main
- 33-feature-ros2-control
pull_request:
paths:
- docs/**
workflow_dispatch:

env:
PUSH: ${{ (github.event_name != 'pull_request') && (github.repository == 'Robotic-Decision-Making-Lab/blue') }}

jobs:
docs:
Expand Down Expand Up @@ -46,11 +38,9 @@ jobs:
working-directory: ./docs

- name: Upload build artifact
if: env.PUSH == 'true'
uses: actions/upload-pages-artifact@v3
with:
path: docs/build

- name: Deploy to GitHub Pages
if: env.PUSH == 'true'
uses: actions/deploy-pages@v4

0 comments on commit e17914e

Please sign in to comment.