File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4242 rm -rf "${{ inputs.temporary-directory }}"
4343 fi
4444 working-directory : ${{ inputs.working-directory }}
45- - name : ' Generate documentation '
45+ - name : ' Generate assembly metadata '
4646 shell : bash
4747 run : docfx metadata ${{ inputs.docfx-json-manifest }}
4848 working-directory : ${{ inputs.working-directory }}
5151 run : |
5252 mkdir -p "${{ inputs.output-directory }}"
5353 cp -r "${{ inputs.temporary-directory }}" "${{ inputs.output-directory }}"
54- working-directory : ${{ inputs.working-directory }}
54+ working-directory : ${{ inputs.working-directory }}
55+ - name : ' Upload artifact'
56+ uses : actions/upload-pages-artifact@v3
57+ with :
58+ name : ${{ inputs.artifact-name }}
59+ path : ' ${{ inputs.working-directory }}/${{ inputs.output-directory }}'
60+
Original file line number Diff line number Diff line change @@ -222,17 +222,19 @@ jobs:
222222 - name : ' Generate assembly metadata'
223223 uses : ./.github/actions/docfx-metadata
224224 with :
225+ artifact-name : ' assembly-metadata'
225226 docfx-json-manifest : ' assembly-metadata.json'
226227 temporary-directory : ' temp'
227228 output-directory : ' ${{ env.friendly-version }}'
228229 working-directory : ' ./api-reference'
229230 - name : ' Push documentation to ${{ github.head_ref || github.ref }} branch'
230231 uses : ./.github/actions/push-changes
231232 with :
233+ artifact-name : ' assembly-metadata'
232234 target-branch : ${{ github.head_ref || github.ref }}
233235 commit-message : ' Update docs for version ${{ env.friendly-version }}'
234236 force-checkout : false
235- working-directory : ' ./api-reference/** '
237+ working-directory : ' ./api-reference/${{ env.friendly-version }} '
236238 - name : ' Generate documentation'
237239 uses : ./.github/actions/docfx-build
238240 with :
You can’t perform that action at this time.
0 commit comments