Skip to content

Commit b2bfe81

Browse files
committed
added temp folder remove and copy temp to output
1 parent 80d085e commit b2bfe81

2 files changed

Lines changed: 20 additions & 2 deletions

File tree

.github/actions/docfx-build/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ runs:
4444
shell: bash
4545
run: |
4646
mkdir -p "${{ inputs.output-directory }}"
47-
cp -r temp/* "${{ inputs.output-directory }}"
47+
cp -r temp/* "${{ inputs.output-directory }}"
4848
- name: Upload artifact
4949
uses: actions/upload-artifact@v4
5050
with:

.github/actions/docfx-metadata/action.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,27 @@ runs:
3030
- name: 'Update docfx tool'
3131
run: dotnet tool update -g docfx
3232
shell: bash
33+
- name: 'Delete temporary folder'
34+
shell: bash
35+
run: |
36+
if [ -d "temp" ]; then
37+
rm -rf temp
38+
fi
3339
- name: 'Generate documentation'
34-
run: docfx metadata ${{ inputs.docfx-json-manifest }} --output ${{ inputs.output-directory }}
40+
run: docfx metadata ${{ inputs.docfx-json-manifest }}
41+
shell: bash
42+
- name: 'Copy metadata to output directory'
43+
shell: bash
44+
run: |
45+
mkdir -p "${{ inputs.output-directory }}"
46+
cp -r temp/* "${{ inputs.output-directory }}"
47+
- name: 'Delete temporary folder'
48+
- name: 'Delete temporary folder'
3549
shell: bash
50+
run: |
51+
if [ -d "temp" ]; then
52+
rm -rf temp
53+
fi
3654
- name: Upload artifact
3755
uses: actions/upload-artifact@v4
3856
with:

0 commit comments

Comments
 (0)