Skip to content

Commit 16c790f

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

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/publish-wiki.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,20 @@ jobs:
3030
if: github.repository == 'PHPCSStandards/PHP_CodeSniffer-documentation'
3131

3232
runs-on: ubuntu-latest
33+
3334
steps:
3435
- name: Checkout code
3536
uses: actions/checkout@v4
3637

38+
- name: Copy wiki files to temporary location
39+
shell: bash
40+
run: cp -v -a wiki _wiki
41+
3742
- name: Deploy to wiki
3843
uses: Andrew-Chen-Wang/github-wiki-action@v4
3944
with:
4045
strategy: 'clone'
41-
path: 'wiki/'
46+
path: '_wiki/'
4247
# commit-message: ...
4348
# repository: PHPCSStandards/PHP_CodeSniffer
4449
# 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)