Skip to content

Commit 9bad1bb

Browse files
committed
Added more info and example
1 parent eef4f73 commit 9bad1bb

1 file changed

Lines changed: 41 additions & 1 deletion

File tree

README.md

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,44 @@ Run your Phing Build in your Github Actions.
33

44
> **PH**ing **I**s **N**ot **G**NU make; it's a PHP project build system or build tool based on Apache Ant. You can do anything with it that you could do with a traditional build system like GNU make, and its use of simple XML build files and extensible PHP "task" classes make it an easy-to-use and highly flexible build framework.
55
6-
[Example Phing Build](https://github.com/phingofficial/phing-github-action-example/runs/1203313448?check_suite_focus=true#step:4:9)
6+
## Configuration
7+
8+
Create your Github Workflow config in `.github/workflows/build.yml` or similar to run your build against `build.xml`
9+
10+
```
11+
name: CI
12+
13+
on: [push]
14+
15+
jobs:
16+
build-test:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Phing Build
22+
uses: phingofficial/phing-github-action@main
23+
```
24+
25+
To execute a build with `custom/path/to/build.xml` as a phing build file use:
26+
27+
```
28+
name: CI
29+
30+
on: [push]
31+
32+
jobs:
33+
build-test:
34+
runs-on: ubuntu-latest
35+
36+
steps:
37+
- uses: actions/checkout@v2
38+
- name: Phing Build
39+
uses: phingofficial/phing-github-action@main
40+
with:
41+
buildfile: custom/path/to/build.xml
42+
```
43+
44+
## Phing in Action
45+
46+
[Example "Phing Build" Project](https://github.com/phingofficial/phing-github-action-example/runs/1203313448?check_suite_focus=true#step:4:9)

0 commit comments

Comments
 (0)