|
| 1 | +name: Deploy GitHub Pages |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - master |
| 7 | + |
| 8 | + workflow_dispatch: |
| 9 | + |
| 10 | +permissions: |
| 11 | + contents: read |
| 12 | + pages: write |
| 13 | + id-token: write |
| 14 | + |
| 15 | +concurrency: |
| 16 | + group: pages |
| 17 | + cancel-in-progress: true |
| 18 | + |
| 19 | +jobs: |
| 20 | + build: |
| 21 | + runs-on: ubuntu-latest |
| 22 | + steps: |
| 23 | + - uses: actions/checkout@v3 |
| 24 | + with: |
| 25 | + fetch-depth: 1 |
| 26 | + |
| 27 | + - run: mkdir public |
| 28 | + |
| 29 | + - name: Build Index |
| 30 | + uses: jaywcjlove/markdown-to-html-cli@main |
| 31 | + with: |
| 32 | + source: res/docs_index.md |
| 33 | + output: public/index.html |
| 34 | + github-corners: https://github.com/buehler/dotnet-operator-sdk |
| 35 | + |
| 36 | + - name: Build KubeOps |
| 37 | + uses: jaywcjlove/markdown-to-html-cli@main |
| 38 | + with: |
| 39 | + source: src/KubeOps/README.md |
| 40 | + output: public/kubeops.html |
| 41 | + github-corners: https://github.com/buehler/dotnet-operator-sdk/tree/master/src/KubeOps |
| 42 | + |
| 43 | + - name: Build KubeOps.KubernetesClient |
| 44 | + uses: jaywcjlove/markdown-to-html-cli@main |
| 45 | + with: |
| 46 | + source: src/KubeOps.KubernetesClient/README.md |
| 47 | + output: public/kubeops-kubernetesclient.html |
| 48 | + github-corners: https://github.com/buehler/dotnet-operator-sdk/tree/master/src/KubeOps.KubernetesClient |
| 49 | + |
| 50 | + - name: Build KubeOps.Templates |
| 51 | + uses: jaywcjlove/markdown-to-html-cli@main |
| 52 | + with: |
| 53 | + source: src/KubeOps.Templates/README.md |
| 54 | + output: public/kubeops-templates.html |
| 55 | + github-corners: https://github.com/buehler/dotnet-operator-sdk/tree/master/src/KubeOps.Templates |
| 56 | + |
| 57 | + - name: Build KubeOps.Testing |
| 58 | + uses: jaywcjlove/markdown-to-html-cli@main |
| 59 | + with: |
| 60 | + source: src/KubeOps.Testing/README.md |
| 61 | + output: public/kubeops-testing.html |
| 62 | + github-corners: https://github.com/buehler/dotnet-operator-sdk/tree/master/src/KubeOps.Testing |
| 63 | + |
| 64 | + - uses: actions/upload-pages-artifact@v1 |
| 65 | + with: |
| 66 | + path: public |
| 67 | + |
| 68 | + - uses: actions/deploy-pages@v1 |
0 commit comments