Skip to content

Commit 2509875

Browse files
committed
ADD TO: publish action / use temporary directory
1 parent 510d3e8 commit 2509875

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
@@ -33,15 +33,20 @@ jobs:
3333
if: github.repository == 'PHPCSStandards/PHP_CodeSniffer-documentation'
3434

3535
runs-on: ubuntu-latest
36+
3637
steps:
3738
- name: Checkout code
3839
uses: actions/checkout@v4
3940

41+
- name: Copy wiki files to temporary location
42+
shell: bash
43+
run: cp -v -a wiki _wiki
44+
4045
- name: Deploy to wiki
4146
uses: Andrew-Chen-Wang/github-wiki-action@v4
4247
with:
4348
strategy: 'clone'
44-
path: 'wiki/'
49+
path: '_wiki/'
4550
# commit-message: ...
4651
# repository: PHPCSStandards/PHP_CodeSniffer
4752
# 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)