documentation.yaml 802 B

123456789101112131415161718192021222324252627282930313233
  1. name: Documentation
  2. on:
  3. workflow_dispatch: {}
  4. push:
  5. branches:
  6. - master
  7. paths:
  8. - .github/workflows/documentation.yaml
  9. - Sources/**.swift
  10. jobs:
  11. build:
  12. runs-on: ubuntu-latest
  13. steps:
  14. - name: Checkout
  15. uses: actions/checkout@v1
  16. - name: Generate Documentation
  17. uses: SwiftDocOrg/swift-doc@master
  18. with:
  19. inputs: "Sources"
  20. output: "Documentation"
  21. format: "html"
  22. module-name: "Kingfisher"
  23. base-url: "/"
  24. - name: Upload Documentation Netlify
  25. uses: netlify/actions/cli@master
  26. with:
  27. args: deploy --dir=Documentation --prod
  28. env:
  29. NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
  30. NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}