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