phpdoc?

This commit is contained in:
codemasher
2020-04-06 16:40:47 +02:00
parent c4fe89a21d
commit f8c8e9391a
4 changed files with 48 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
FROM phpdoc/phpdoc
LABEL "repository"="https://github.com/chillerlan/php-qrcode"
LABEL "com.github.actions.name"="Build Docs"
LABEL "com.github.actions.description"="Build Docs with phpDocumentor"
LABEL "com.github.actions.icon"="file-text"
LABEL "com.github.actions.color"="blue"
# don't show errors
RUN echo "display_errors = Off" > $PHP_INI_DIR/conf.d/errors.ini
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
+5
View File
@@ -0,0 +1,5 @@
#!/bin/sh
set -eu
/opt/phpdoc/bin/phpdoc
+28
View File
@@ -0,0 +1,28 @@
# from https://github.com/PHPMailer/PHPMailer
on:
push:
branches:
- master
name: "Docs"
jobs:
build_and_publish:
name: "Build and publish Docs"
runs-on: ubuntu-latest
steps:
- name: "Checkout sources"
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: "Build Docs"
uses: ./.github/actions/build-docs
- name: "Publish Docs to gh-pages"
uses: maxheld83/ghpages@v0.3.0
env:
BUILD_DIR: docs/
GH_PAT: ${{ secrets.GH_PAT }}
View File