show changes
[mdref/mdref] / .github / workflows / publish.yml
index 9808558c207d94dbcb2dddc4fbc4f897f7c85585..3d654741fce4f90d27e4411b6e550d168fb8cdd9 100644 (file)
@@ -36,6 +36,10 @@ jobs:
         with:
           repository: mdref/mdref-raphf
           path: refs/raphf
+      - uses: actions/checkout@v2
+        with:
+          repository: mdref/mdref.github.io
+          path: html
       - name: Install dependencies
         run: |
           sudo apt-get update -y
@@ -58,22 +62,26 @@ jobs:
                 | jq -r 'to_entries[-1].value.".bz2".phar'
             )
             curl -sSLO replicator.pharext.org/$phar
-            php $(basename $phar) -s
+            php $(basename $phar) -qs
           done
       - name: Install composer dependencies
         run: |
           composer install
       - name: Generate HTML
         run: |
-          mkdir html
+          mkdir -p html
           cd html
-          ./bin/ref2html . ../refs/*
+          ../bin/ref2html . ../refs/*
       - name: Generate STUBs
         run: |
           cd html
           for ext in http pq; do
-            ../bin/ref2stub $ext
+            ../bin/ref2stub ../refs/$ext
           done
+      - name: Show changes
+        run: |
+          cd html
+          git diff
       - uses: crazy-max/ghaction-github-pages@v2
         if: success()
         env: