From 36997f870050bd56f8fe6d66c6648c02a8d8530b Mon Sep 17 00:00:00 2001 From: Sean Prashad <13009507+SeanPrashad@users.noreply.github.com> Date: Fri, 29 Jul 2022 16:59:19 -0400 Subject: [PATCH] Use organic steps for deploying gh-pages --- .github/workflows/github-pages.yml | 34 +++++++++++++++--------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index 811ff2ff..e5dd8230 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -1,36 +1,36 @@ -name: GitHub pages +name: github-pages on: push: branches: - master + # Allows manual runs from the Actions tab + workflow_dispatch: + jobs: - deploy: + build-and-deploy: runs-on: ubuntu-20.04 permissions: contents: write concurrency: group: ${{ github.workflow }}-${{ github.ref }} steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 + - name: Checkout Repo + uses: actions/checkout@v3 - - name: Install Node + - name: Install NodeJS uses: actions/setup-node@v3 with: - node-version: '14.x' + node-version: '14' - - name: Install Packages - run: npm ci + - name: Build Static Files + run: | + npm ci + npm run build - - name: Build - run: npm run build + - name: Build Artifact + uses: actions/jekyll-build-pages@v1 - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 - if: ${{ github.ref == 'refs/heads/master' }} - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./ + - name: Upload Artifact + uses: actions/upload-pages-artifact@v0