1 name: Publish documentation
13 uses: actions/checkout@v4
16 uses: pnpm/action-setup@v4
19 uses: actions/setup-node@v4
24 - name: Generate documentation
26 pnpm install --ignore-scripts --frozen-lockfile
30 if: github.repository == 'poolifier/poolifier' && github.ref == 'refs/heads/${{ github.event.repository.default_branch }}'
32 COMMIT_MESSAGE: 'docs: generate documentation'
33 COMMIT_AUTHOR: Documentation Bot
34 COMMIT_EMAIL: documentation-bot@users.noreply.github.com
36 git config --local user.name "${{ env.COMMIT_AUTHOR }}"
37 git config --local user.email "${{ env.COMMIT_EMAIL }}"
40 git commit -a -m "${{ env.COMMIT_MESSAGE }}"
43 if: github.repository == 'poolifier/poolifier' && github.ref == 'refs/heads/${{ github.event.repository.default_branch }}'
44 uses: CasperWA/push-protected@v2
46 token: ${{ secrets.GH_TOKEN_PROTECTED }}
47 branch: ${{ github.event.repository.default_branch }}