You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- name: Install current dependencies from composer.lock
@@ -34,48 +32,54 @@ jobs:
34
32
run: phpDocumentor --version
35
33
- name: Generate documentation
36
34
run: composer run-php-documentor
37
-
- name: zip phpdocumentor dir
35
+
- name: Zip phpDocumentor directory
38
36
run: zip -r phpdocumentor.zip docs/phpdocumentor
39
37
- name: Upload generated doc files
40
-
uses: actions/upload-artifact@v2
38
+
uses: actions/upload-artifact@v4
41
39
with:
42
40
name: doc-files
43
41
path: phpdocumentor.zip
44
42
deploy-docs:
45
-
name: Deploy Core Docs.
43
+
name: Deploy Core Docs
46
44
runs-on: ubuntu-20.04
47
45
needs: make-restapi-docs
48
46
steps:
49
47
- name: Checkout phplist/core-docs
50
-
uses: actions/checkout@v2
48
+
uses: actions/checkout@v3
51
49
with:
52
50
repository: phpList/core-docs
53
51
fetch-depth: 0
54
52
token: ${{ secrets.PUSH_CORE_DOCS }}
55
53
- name: Restore REST API Spec
56
-
uses: actions/download-artifact@v2
54
+
uses: actions/download-artifact@v4
57
55
with:
58
56
name: doc-files
59
-
- name: unzip phpdocumentor
57
+
- name: Unzip phpDocumentor
60
58
run: |
61
59
unzip phpdocumentor.zip
62
60
rm phpdocumentor.zip
63
61
- name: List Files
64
62
run: ls
65
-
- name: Sync old files with newly generated ones.
63
+
- name: Sync old files with newly generated ones
66
64
run: rsync -av docs/phpdocumentor/* .
67
-
- name: Removed temp dirs
65
+
- name: Remove temporary directories
68
66
run: rm -rf docs
69
-
- name: Check if updates/changes.
67
+
- name: Check if updates/changes
70
68
run: git status --porcelain > repo-changes.txt
71
69
- name: Check changes file
72
70
run: cat repo-changes.txt
73
-
- name: Verify updates.
71
+
- name: Verify updates
74
72
id: allow-deploy
75
73
run: |
76
-
if [ -s repo-changes.txt ]; then echo "Updates made to documentation"; echo '::set-output name=DEPLOY::true'; else echo "No updates made to documentation deployment would be skipped."; echo '::set-output name=DEPLOY::false'; fi
0 commit comments