فهرست منبع

:sparkles: phpdoc?

codemasher 5 سال پیش
والد
کامیت
f8c8e9391a
4فایلهای تغییر یافته به همراه48 افزوده شده و 0 حذف شده
  1. 15 0
      .github/actions/build-docs/Dockerfile
  2. 5 0
      .github/actions/build-docs/entrypoint.sh
  3. 28 0
      .github/workflows/docs.yml
  4. 0 0
      docs/Readme.md

+ 15 - 0
.github/actions/build-docs/Dockerfile

@@ -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 - 0
.github/actions/build-docs/entrypoint.sh

@@ -0,0 +1,5 @@
+#!/bin/sh
+
+set -eu
+
+/opt/phpdoc/bin/phpdoc

+ 28 - 0
.github/workflows/docs.yml

@@ -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 }}

+ 0 - 0
docs/Readme.md