Skip to content

Commit 2e1cc1e

Browse files
committed
ADD TO: publish action / use temporary directory
1 parent 8f6c7a8 commit 2e1cc1e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/publish-wiki.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,17 @@ jobs:
3838
- name: Checkout code
3939
uses: actions/checkout@v4
4040

41+
- name: Copy wiki files to temporary location
42+
shell: bash
43+
run: cp -v -a wiki _wiki
44+
4145
- name: Deploy to wiki
4246
uses: Andrew-Chen-Wang/[email protected]
4347
env:
4448
COMMIT_MSG: ${{ github.event.head_commit.message }}
4549
with:
4650
strategy: 'clone'
47-
path: 'wiki/'
51+
path: '_wiki/'
4852
commit-message: ${{ env.COMMIT_MSG }}
4953
# repository: PHPCSStandards/PHP_CodeSniffer
5054
# token: ${{ secrets.PHPCS_GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
_wiki/
12
node_modules/

0 commit comments

Comments
 (0)