@@ -16,83 +16,6 @@ concurrency:
1616 cancel-in-progress : false
1717
1818jobs :
19- wiki :
20- name : Update Wiki
21- runs-on : ubuntu-latest
22- steps :
23- - name : Checkout repository
24- uses : actions/checkout@v4
25- with :
26- submodules : recursive
27- ref : ${{ github.head_ref || github.ref_name }}
28-
29- - name : Get Composer Cache Directory
30- id : composer-cache
31- run : |
32- echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
33-
34- - name : Cache Composer dependencies
35- uses : actions/cache@v4
36- with :
37- path : ${{ steps.composer-cache.outputs.dir }}
38- key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
39- restore-keys : |
40- ${{ runner.os }}-composer-
41-
42- - name : Install dependencies
43- uses : php-actions/composer@v6
44- env :
45- COMPOSER_AUTH : ' {"github-oauth": {"github.com": "${{ github.token }}"} }'
46- with :
47- php_version : ' 8.4'
48-
49- - name : Create Docs Markdown
50- uses : php-actions/composer@v6
51- with :
52- php_version : ' 8.4'
53- command : ' docs'
54-
55- - name : Commit submodule changes
56- run : |
57- git config --global user.email "github-actions[bot]@users.noreply.github.com"
58- git config --global user.name "github-actions[bot]"
59-
60- cd docs/wiki
61- git remote set-url origin https://x-access-token:${{ github.token }}@github.com/${{ github.repository }}.wiki.git
62-
63- git fetch origin
64- BRANCH_NAME="${{ github.head_ref || github.ref_name }}"
65-
66- if [ "$BRANCH_NAME" = "main" ]; then
67- if ! git ls-remote --exit-code --heads origin main > /dev/null; then
68- BRANCH_NAME="master"
69- fi
70- fi
71-
72- git checkout -b temp-branch origin/$BRANCH_NAME
73- git pull origin $BRANCH_NAME --rebase
74-
75- git add .
76- if git diff --cached --quiet; then
77- echo "No changes to commit in submodule"
78- exit 0
79- fi
80-
81- git commit -m "Update wiki content"
82- git push origin HEAD:refs/heads/$BRANCH_NAME
83-
84- cd ../..
85-
86- git submodule update --remote --merge
87-
88- git add docs/wiki
89- if git diff --cached --quiet; then
90- echo "No submodule reference change to commit"
91- exit 0
92- fi
93-
94- git commit -m "Update wiki submodule reference [skip ci]"
95- git push origin HEAD:refs/heads/${{ github.head_ref || github.ref_name }}
9619 tests :
9720 name : Run Tests
9821 runs-on : ubuntu-latest
@@ -146,11 +69,11 @@ jobs:
14669 exit 1
14770 fi
14871
149- - name : Generate API docs
72+ - name : Generate phpDocumentor API Docs
15073 uses : php-actions/composer@v6
15174 with :
15275 php_version : ' 8.4'
153- command : ' docs -- --target=public/ --template="default "'
76+ command : ' docs -- --target=public/ --template=""'
15477
15578 - name : Upload artifact
15679 if : github.ref == 'refs/heads/main'
15982 path : public/
16083
16184 deploy :
162- name : Deploy API Docs & Coverage to GitHub Pages
85+ name : Deploy to GitHub Pages
16386 if : github.ref == 'refs/heads/main'
16487 needs : tests
16588 environment :
0 commit comments