diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6a25c28..70803ad 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,10 +9,11 @@ jobs: runs-on: ubuntu-latest # the list of steps that the action will go through steps: - - name: Publish github pages + - name: "Github Pages Deployment" run: | git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git - npx gh-pages -d build -u "github-actions-bot " + yarn deploy -u "github-actions-bot " + if: ${{ github.ref == 'refs/heads/master' }} # only deploy master env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} VITE_CLIENT_ID: ${{ secrets.VITE_CLIENT_ID }}