diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 3afd9f5..025d651 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -1,5 +1,9 @@ name: Publis to GitHub Pages -on: [ push ] +on: + push: + branches: + - master + - v2 jobs: build: runs-on: ubuntu-latest @@ -13,7 +17,9 @@ jobs: uses: borales/actions-yarn@v4 with: cmd: install - - name: Deploy (build & test) - uses: borales/actions-yarn@v4 + - name: Deploy + uses: peaceiris/actions-gh-pages@v4 with: - cmd: deploy \ No newline at end of file + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./build + publish_branch: gh-pages \ No newline at end of file