Skip to content

Commit bfead9e

Browse files
committed
ADD TO: publish action / use temporary directory
1 parent 85f341b commit bfead9e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/publish-wiki.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,14 @@ jobs:
3434
- name: Checkout code
3535
uses: actions/checkout@v4
3636

37+
- name: Copy wiki files to temporary location
38+
run: cp -v -a ./wiki/ ./build/_wiki/
39+
3740
- name: Deploy to wiki
3841
uses: Andrew-Chen-Wang/github-wiki-action@v4
3942
with:
4043
strategy: 'clone'
41-
path: 'wiki/'
44+
path: 'build/_wiki/'
4245
# commit-message: ...
4346
# repository: PHPCSStandards/PHP_CodeSniffer
4447
# token: ${{ secrets.PHPCS_GITHUB_TOKEN }}

.gitignore

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

0 commit comments

Comments
 (0)