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
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 \
| 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: