Skip to content

Commit a9005ba

Browse files
author
GH Actions Workflow Sync Bot
committed
💬 #63 - Workflow File Created / ⚡ Triggered By varunsridharan/.workflows@a93bce9269c4275b001cb11a2f40db3a75b51ea8
1 parent 46128e2 commit a9005ba

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

.github/workflows/php.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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 " "

0 commit comments

Comments
 (0)