diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 8eef40ed..0e08fe9a 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -47,7 +47,15 @@ jobs: # Deployment job - name: Deploy 🚀 + if: ${{ github.ref_name == 'master' }} uses: JamesIves/github-pages-deploy-action@3.7.1 - with: + with: BRANCH: gh-pages # The branch the action should deploy to. FOLDER: build # The folder the action should deploy. + - name: Test build + if: ${{ github.ref_name != 'master' }} + uses: JamesIves/github-pages-deploy-action@3.7.1 + with: + BRANCH: gh-pages-test # The branch the action should deploy to. + FOLDER: build # The folder the action should deploy. +