onevcat 5 lat temu
rodzic
commit
f44b528496
1 zmienionych plików z 30 dodań i 0 usunięć
  1. 30 0
      .github/workflows/documentation.yaml

+ 30 - 0
.github/workflows/documentation.yaml

@@ -0,0 +1,30 @@
+name: Documentation
+
+on:
+  workflow_dispatch: {}
+  push:
+    branches:
+      - master
+    paths:
+      - .github/workflows/documentation.yml
+      - Sources/**.swift
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v1
+      - name: Generate Documentation
+        uses: SwiftDocOrg/swift-doc@master
+        with:
+          inputs: "Sources"
+          output: "Documentation"
+      - name: Upload Documentation Netlify
+        uses: netlify/actions/cli@master
+        with:
+          args: deploy --dir=Documentation --functions=functions
+        env:
+          NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
+          NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}