|
|
@@ -36,6 +36,34 @@ jobs:
|
|
|
- name: "Run phan"
|
|
|
run: php vendor/bin/phan
|
|
|
|
|
|
+ build-docs:
|
|
|
+ name: "Build and publish Docs"
|
|
|
+
|
|
|
+ runs-on: ubuntu-latest
|
|
|
+
|
|
|
+ steps:
|
|
|
+ - name: "Checkout sources"
|
|
|
+ uses: actions/checkout@v2
|
|
|
+
|
|
|
+ - name: "Install PHP"
|
|
|
+ uses: shivammathur/setup-php@v2
|
|
|
+ with:
|
|
|
+ php-version: "7.4"
|
|
|
+ coverage: none
|
|
|
+ tools: phpDocumentor:3
|
|
|
+ extensions: ast, gd, imagick, json, mbstring
|
|
|
+
|
|
|
+ - name: "Build Docs"
|
|
|
+ run: phpdoc --config=phpdoc.xml`
|
|
|
+
|
|
|
+ - name: "Publish Docs to gh-pages"
|
|
|
+ uses: JamesIves/github-pages-deploy-action@4.1.5
|
|
|
+ with:
|
|
|
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
+ BRANCH: gh-pages
|
|
|
+ FOLDER: docs
|
|
|
+ CLEAN: true
|
|
|
+
|
|
|
tests:
|
|
|
name: "Unit Tests"
|
|
|
|
|
|
@@ -53,10 +81,6 @@ jobs:
|
|
|
- "8.1"
|
|
|
|
|
|
steps:
|
|
|
-# - name: "Configure git to avoid issues with line endings"
|
|
|
-# if: matrix.os == 'windows-latest'
|
|
|
-# run: git config --global core.autocrlf false
|
|
|
-
|
|
|
- name: "Checkout"
|
|
|
uses: actions/checkout@v2
|
|
|
|