Merge pull request #50 from Dom324/checkbox-global-press-key #26
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: Build & Deploy docs | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - docs/** | |
| jobs: | |
| deploy: | |
| permissions: | |
| contents: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18 | |
| - uses: oven-sh/setup-bun@v1 | |
| - uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.npm | |
| ${{ github.workspace }}/docs/.next/cache | |
| key: ${{ runner.os }}-nextjs-${{ hashFiles('**/bun.lockb') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }} | |
| restore-keys: | | |
| ${{ runner.os }}-nextjs-${{ hashFiles('**/bun.lockb') }}- | |
| - run: | | |
| cd docs | |
| bun install | |
| bun run build | |
| cd .. | |
| - uses: SamKirkland/[email protected] | |
| with: | |
| server: ${{ secrets.GRAPP_FTP_SERVER_URL }} | |
| username: ${{ secrets.GRAPP_FTP_USERNAME }} | |
| password: ${{ secrets.GRAPP_FTP_PASSWORD }} | |
| local-dir: './docs/out/' | |
| server-dir: 'nui-components/' |