X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=.github%2Fworkflows%2Fpublish.yml;h=9aff7fb1459de1efbf301e7131574121509f87a5;hb=6fb2bcef6982d1125c45f821e84fe45e16192557;hp=94fb5d9cf5c5f56843de9782f832820903035a66;hpb=136285bb1b3e1e6396196fb91b7c8258af1bed72;p=mdref%2Fmdref diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 94fb5d9..9aff7fb 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -38,6 +38,9 @@ jobs: path: refs/raphf - name: Install dependencies run: | + v=8.0; for b in "" ize -config; do \ + sudo update-alternatives --set php$b /usr/bin/php$b$v; \ + done sudo apt-get update -y sudo apt-get install -y \ php-cli \ @@ -52,27 +55,27 @@ jobs: libbrotli-dev - name: Install referenced php extensions for stubs run: | - for ext in raphf http pq; do + for ext in raphf pecl_http pq; do phar=$( - curl -sSL -H Accept:application/json replicator.pharext.org?$ext) \ + curl -sSL -H Accept:application/json replicator.pharext.org?$ext \ | jq -r 'to_entries[-1].value.".bz2".phar' ) curl -sSLO replicator.pharext.org/$phar - php $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 - uses: crazy-max/ghaction-github-pages@v2 if: success() @@ -86,5 +89,3 @@ jobs: build_dir: html repo: mdref/mdref.github.io fqdn: mdref.m6w6.name - dry_run: true -