Publish docs improvements #6
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
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - 'src/**' | |
| - '.github/workflows/publish-docs.yml' | |
| - 'package.json' | |
| - 'pnpm-lock.yaml' | |
| - 'vite.config.js' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: Publish Docs | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.PAT }} | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: latest | |
| run_install: false | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: 'pnpm' | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Build | |
| run: pnpm build-docs | |
| - name: Commit and push | |
| uses: stefanzweifel/git-auto-commit-action@v5 | |
| with: | |
| commit_message: 🤖 Update docs [automated] 📚 | |
| commit_user_name: ${{ github.actor }} |