name: Docs on: push: branches: - master permissions: {} jobs: build_and_publish: permissions: contents: write # to push changes in repo (jamesives/github-pages-deploy-action) name: Build and publish Docs runs-on: ubuntu-latest if: github.repository == 'PHPMailer/PHPMailer' steps: - name: Checkout sources uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: fetch-depth: 1 persist-credentials: false - name: Build Docs uses: ./.github/actions/build-docs - name: Publish Docs to gh-pages uses: JamesIves/github-pages-deploy-action@4a3abc783e1a24aeb44c16e869ad83caf6b4cc23 # v4.7.4 with: branch: gh-pages folder: docs env: BUILD_DIR: docs/ GH_PAT: ${{ secrets.GH_PAT }}