Merge pull request #279 from rollandf/ocp-discon-ctnd #82
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Build" | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| name: generate-html | |
| runs-on: ubuntu-22.04 | |
| if: github.event_name == 'pull_request' || github.ref == 'refs/heads/main' | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| - name: build | |
| run: make gen-docs | |
| - name: 'upload Artifact' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: generated-html | |
| path: _build/docs/nvidia_network_operator | |
| - name: 'Create PR metadata' | |
| if: github.event_name == 'pull_request' | |
| run: | | |
| mkdir -p pr | |
| echo "${{ github.event.pull_request.number }}" > pr/pr.txt | |
| echo "${{ github.event.pull_request.merged }}" > pr/merged.txt | |
| echo "${{ github.event.action }}" > pr/action.txt | |
| - name: 'Upload PR metadata artifact' | |
| if: github.event_name == 'pull_request' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: pr | |
| path: pr |