Skip to content

Commit 6de2385

Browse files
author
Dohyung Ahn
authored
Merge pull request #1180 from nhn/fix/publich-docs-action
2 parents 495d630 + 1ea2ea2 commit 6de2385

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/publish-docs.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,19 @@ jobs:
3535
- name: Switch branch
3636
run: |
3737
git switch gh-pages
38+
- name: Remove previous docs
39+
run: |
40+
rm -rf latest
41+
rm -rf ${{ steps.cpv.outputs.committed-version }}
3842
- name: Commit docs
43+
working-directory: ${{ env.WORKING_DIRECTORY }}
3944
run: |
4045
git config --local user.email "[email protected]"
4146
git config --local user.name "Dohyung Ahn"
42-
rm -rf ../../latest
43-
rm -rf ../../${{ steps.cpv.outputs.committed-version }}
4447
mv -i _latest ../../latest
4548
mv _${{ steps.cpv.outputs.committed-version }} ../../${{ steps.cpv.outputs.committed-version }}
4649
git add -A
4750
git commit -m ${{ steps.cpv.outputs.committed-version }}
48-
working-directory: ${{ env.WORKING_DIRECTORY }}
4951
- name: Publish new docs
5052
uses: ad-m/github-push-action@master
5153
with:

0 commit comments

Comments
 (0)