From 2cf69af27c5c9cb79af2a2f42bc712e8f7bd7f5a Mon Sep 17 00:00:00 2001 From: Sean Prashad <13009507+SeanPrashad@users.noreply.github.com> Date: Fri, 29 Jul 2022 19:15:09 -0400 Subject: [PATCH] Add step to check for GitHub Pages status Fixes #203 --- .github/workflows/github-pages.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index 5b7c8f54..2e566e85 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -8,20 +8,26 @@ on: workflow_dispatch: jobs: - build-test-deploy: + build-and-deploy: runs-on: ubuntu-20.04 steps: - - name: Checkout + - name: Checkout Repository uses: actions/checkout@v3 - - name: Set-up Node + - name: Install dependencies and build uses: actions/setup-node@v3 with: node-version: '14' - run: npm ci - run: npm run build - - name: Deploy + - name: Check GitHub Pages status + uses: crazy-max/ghaction-github-status@v3 + with: + pages_threshold: major_outage + + - name: Deploy to gh-pages branch + if: success() uses: crazy-max/ghaction-github-pages@v3 with: target_branch: gh-pages