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 42
42
43
43
- name : " Run guides-cli"
44
44
run : " vendor/bin/guides -vvv --no-progress docs --output='/tmp/test' --fail-on-log"
45
+
46
+ build :
47
+ name : " Documentation"
48
+ if : " ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}"
49
+ runs-on : " ubuntu-latest"
50
+ steps :
51
+ - name : " Checkout"
52
+ uses : " actions/checkout@v4"
53
+
54
+ - name : " Build"
55
+ uses : " phpDocumentor/phpDocumentor@master"
56
+
57
+ - name : " Upload"
58
+ uses : " actions/upload-artifact@v4"
59
+ with :
60
+ name : " documentation"
61
+ path : " build/docs"
62
+ retention-days : 1
63
+
64
+ deploy :
65
+ name : " Deploy"
66
+ if : " ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}"
67
+ runs-on : " ubuntu-latest"
68
+ needs : " build"
69
+ steps :
70
+ - name : " Checkout"
71
+ uses : " actions/checkout@v4"
72
+ with :
73
+ repository : " phpDocumentor/docs"
74
+ token : " ${{ secrets.BOT_TOKEN }}"
75
+ path : " docs"
76
+
77
+ - name : " Download"
78
+ uses : " actions/download-artifact@v4"
79
+ with :
80
+ name : " documentation"
81
+ path : " build/docs"
82
+
83
+ - name : " Copy files"
84
+ run : " rsync -r --delete build/docs/* docs/docs/components/guides"
85
+
86
+ - name : " Commit"
87
+ uses : " stefanzweifel/git-auto-commit-action@v5"
88
+ with :
89
+ repository : " docs"
90
+ commit_message : " Update guides documentation"
91
+
92
+ - name : " Push"
93
+ uses : " ad-m/github-push-action@master"
94
+ with :
95
+ directory : " docs"
96
+ github_token : " ${{ secrets.BOT_TOKEN }}"
97
+ repository : " phpDocumentor/docs"
You can’t perform that action at this time.
0 commit comments