name: Generate site

on:
    push:
        branches: [main]
        tags-ignore:
            - '*'
    pull_request:
        branches: [main]
        tags-ignore:
            - '*'

jobs:
    docs:
        runs-on: ubuntu-latest

        steps:
            - name: Trigger generate site hook
              run: |
                  curl -XPOST -u "${{ secrets.PAT_USERNAME}}:${{secrets.PAT_TOKEN}}" -H "Accept:application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/xdan/jodit-pro-home/dispatches --data '{"event_type": "opened" }'
