From fff289eef426d62336184534cda8f975d7b7f75e Mon Sep 17 00:00:00 2001 From: Sean Prashad <13009507+SeanPrashad@users.noreply.github.com> Date: Fri, 29 Jul 2022 16:40:21 -0400 Subject: [PATCH] Revert workflow to last known working state --- .github/workflows/github-pages.yml | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index 6ef16191..811ff2ff 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -6,27 +6,31 @@ on: - master jobs: - build-and-deploy: + deploy: runs-on: ubuntu-20.04 permissions: contents: write concurrency: group: ${{ github.workflow }}-${{ github.ref }} steps: - - name: Checkout 🛎️ - uses: actions/checkout@v3 + - uses: actions/checkout@v3 + with: + fetch-depth: 0 - - name: Install Node ⚛️ + - name: Install Node uses: actions/setup-node@v3 with: - node-version: '14' + node-version: '14.x' + + - name: Install Packages + run: npm ci - - name: Install Packages and Build 🔧 - run: | - npm ci + - name: Build + run: npm run build - - name: Deploy 🚀 - run: | - git config user.email "${{ secrets.GIT_CONFIG_EMAIL }}" - git config user.name "${{ secrets.GIT_CONFIG_NAME }}" - npm run deploy + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + if: ${{ github.ref == 'refs/heads/master' }} + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./