documentation.yaml 731 B

123456789101112131415161718192021222324252627282930
  1. name: Documentation
  2. on:
  3. workflow_dispatch: {}
  4. push:
  5. branches:
  6. - master
  7. paths:
  8. - .github/workflows/documentation.yml
  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. - name: Upload Documentation Netlify
  22. uses: netlify/actions/cli@master
  23. with:
  24. args: deploy --dir=Documentation --functions=functions
  25. env:
  26. NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
  27. NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}