File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Code documentation
2
+
3
+ on :
4
+ push :
5
+ branches : [ master ]
6
+
7
+ # Allow running the workflow manually from the Actions tab
8
+ # workflow_dispatch:
9
+
10
+ # Allow GITHUB_TOKEN to deploy to GitHub Pages
11
+ permissions :
12
+ contents : read
13
+ pages : write
14
+ id-token : write
15
+
16
+ # Allow one concurrent deployment
17
+ concurrency :
18
+ group : pages
19
+ cancel-in-progress : true
20
+
21
+ jobs :
22
+ build :
23
+ runs-on : ubuntu-latest
24
+ steps :
25
+ - name : Checkout
26
+ uses : actions/checkout@v3
27
+ - name : Configure GitHub Pages
28
+ uses : actions/configure-pages@v5
29
+ - name : Cache phpDocumentor build files
30
+ id : phpdocumentor-cache
31
+ uses : actions/cache@v3
32
+ with :
33
+ path : .phpdoc/cache
34
+ key : ${{ runner.os }}-phpdocumentor-${{ github.sha }}
35
+ restore-keys : |
36
+ ${{ runner.os }}-phpdocumentor-
37
+ - name : Build with phpDocumentor
38
+ run : docker run --rm --volume "$(pwd):/data" phpdoc/phpdoc:3 -vv --target docs --cache-folder .phpdoc/cache --template default
39
+ - name : Upload artifact to GitHub Pages
40
+ uses : actions/upload-pages-artifact@v3
41
+ with :
42
+ path : docs
43
+
44
+ deploy :
45
+ needs : build
46
+ environment :
47
+ name : github-pages
48
+ url : ${{ steps.deployment.outputs.page_url }}
49
+ runs-on : ubuntu-latest
50
+ steps :
51
+ - name : Deploy to GitHub Pages
52
+ id : deployment
53
+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments