feat: avoid pushing api folder to gh-pages. #12221
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy to GitHub pages | |
| on: | |
| workflow_dispatch: | |
| # schedule: | |
| # - cron: "0 6 * * *" | |
| push: | |
| paths: | |
| - "public/docs/index.html" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: | | |
| git init | |
| git add -A | |
| git config --local user.email "github-actions[bot]" | |
| git config --local user.name "41898282+github-actions[bot]@users.noreply.github.com" | |
| git commit -m 'deploy' | |
| working-directory: ./public/docs | |
| - uses: JamesIves/[email protected] | |
| with: | |
| branch: gh-pages | |
| folder: public/docs |