docs.yml 614 B

123456789101112131415161718192021222324252627282930
  1. # from https://github.com/PHPMailer/PHPMailer
  2. on:
  3. push:
  4. branches:
  5. - main
  6. name: "Docs"
  7. jobs:
  8. build_and_publish:
  9. name: "Build and publish Docs"
  10. runs-on: ubuntu-latest
  11. steps:
  12. - name: "Checkout sources"
  13. uses: actions/checkout@v2
  14. with:
  15. fetch-depth: 1
  16. - name: "Build Docs"
  17. uses: ./.github/actions/build-docs
  18. - name: "Publish Docs to gh-pages"
  19. uses: JamesIves/github-pages-deploy-action@4.1
  20. with:
  21. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  22. BRANCH: gh-pages
  23. FOLDER: dist
  24. CLEAN: true