From f121f7847f51da485e5c37f2019aeceec4bc55db Mon Sep 17 00:00:00 2001 From: Stephannie Jimenez Date: Mon, 3 May 2021 12:33:53 -0500 Subject: [PATCH] Change deployment to github actions for github pages --- .github/workflows/pages.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 94419103c..77357707a 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -1,9 +1,9 @@ -on: +on: push: branches: - main pull_request: - branches: + branches: - "**" jobs: run: @@ -33,9 +33,7 @@ jobs: if-no-files-found: error - name: Deploy if: ${{ github.ref == 'refs/heads/main'}} - uses: JamesIves/github-pages-deploy-action@4.1.1 - env: - ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} - BASE_BRANCH: main # The branch the action should deploy from. - BRANCH: gh-pages # The branch the action should deploy to. - FOLDER: build + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./build