File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed
Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change 1+ name : PHP CI/CD
2+
3+ env :
4+ VS_WORKFLOW_TYPE : " php-cicd"
5+
6+ on :
7+ push :
8+ branches :
9+ - master
10+ paths :
11+ - ' **.php'
12+
13+ jobs :
14+ apigen_docs :
15+ name : " ApiGen Docs"
16+ runs-on : ubuntu-latest
17+ steps :
18+ - name : " 📥 Fetching Repository Contents"
19+ uses : actions/checkout@master
20+
21+ - name : " 💾 Github Repository Metadata"
22+ uses : varunsridharan/action-repository-meta@master
23+ env :
24+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
25+
26+ - name : " 💫 VS Utility"
27+ uses : varunsridharan/action-vs-utility@master
28+
29+ - name : " ⚡ Repository - Before Hook"
30+ run : |
31+ echo " "
32+ if [ -f $VS_BEFORE_HOOK_FILE_LOCATION ]; then
33+ echo "✅ Before Hook File Found : $VS_BEFORE_HOOK_FILE_LOCATION"
34+ sh $VS_BEFORE_HOOK_FILE_LOCATION
35+ else
36+ echo "⚠️ No Before Hook File Found : $VS_BEFORE_HOOK_FILE_LOCATION"
37+ fi
38+ echo " "
39+
40+ - name : " 📚 Generating Code Documentation"
41+ uses : varunsridharan/action-apigen@2.1
42+ env :
43+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44+
45+ - name : " ⚡ Repository - After Hook"
46+ run : |
47+ echo " "
48+ if [ -f $VS_AFTER_HOOK_FILE_LOCATION ]; then
49+ echo "✅ After Hook File Found : $VS_AFTER_HOOK_FILE_LOCATION"
50+ sh $VS_AFTER_HOOK_FILE_LOCATION
51+ else
52+ echo "⚠️ No After Hook File Found : $VS_AFTER_HOOK_FILE_LOCATION"
53+ fi
54+ echo " "
You can’t perform that action at this time.
0 commit comments