From 9bab82ad27cb5e97218e8c91e2dfc77ad9e306f0 Mon Sep 17 00:00:00 2001 From: Sean Prashad <13009507+SeanPrashad@users.noreply.github.com> Date: Fri, 29 Jul 2022 17:18:24 -0400 Subject: [PATCH] Use crazy-max/ghaction-github-pages --- .github/workflows/github-pages.yml | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index 79b1489a..1a1aa1ef 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -6,22 +6,24 @@ on: - master pull_request: - # Allows manual runs from the Actions tab workflow_dispatch: jobs: - build-and-deploy: + build-test-deploy: runs-on: ubuntu-20.04 - permissions: - contents: write - concurrency: - group: ${{ github.workflow }}-${{ github.ref }} steps: - - name: Checkout Repo + - name: Checkout uses: actions/checkout@v3 - - name: Build Artifact - uses: actions/jekyll-build-pages@v1 + - name: Set-up Node + uses: actions/setup-node@v3 + with: + node-version: '14' + - run: npm ci + - run: npm run build - - name: Upload Artifact - uses: actions/upload-pages-artifact@v0 + - name: Deploy + uses: crazy-max/ghaction-github-pages@v3 + with: + target_branch: gh-pages + build_dir: build