name: Deploy on: push: branches: - 'src' jobs: gh_pages: runs-on: ubuntu-latest permissions: write-all steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: cache: 'yarn' - name: "Install Dependencies" run: yarn - name: Deploy with gh-pages run: | git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git yarn deploy -- -u "github-actions-bot " env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_REPOSITORY: ${{ github.repository }}