From e17914e61772c0402e6e0a944c5f6c24cf309385 Mon Sep 17 00:00:00 2001 From: Evan Palmer Date: Fri, 19 Apr 2024 01:37:46 -0700 Subject: [PATCH] Added separate ci docs pipeline --- .github/workflows/ci-docs.yaml | 35 ++++++++++++++++++++++++++++++++++ .github/workflows/ci.yaml | 2 +- .github/workflows/docs.yaml | 10 ---------- 3 files changed, 36 insertions(+), 11 deletions(-) create mode 100644 .github/workflows/ci-docs.yaml diff --git a/.github/workflows/ci-docs.yaml b/.github/workflows/ci-docs.yaml new file mode 100644 index 00000000..53df3f65 --- /dev/null +++ b/.github/workflows/ci-docs.yaml @@ -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 diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e7b9e75d..c8ab2d63 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,4 +1,4 @@ -name: CI +name: Check Implementation on: push: diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index b27f6e72..62ee4d51 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -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: @@ -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