projects
/
mdref
/
mdref
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
show changes
[mdref/mdref]
/
.github
/
workflows
/
publish.yml
diff --git
a/.github/workflows/publish.yml
b/.github/workflows/publish.yml
index 94fb5d9cf5c5f56843de9782f832820903035a66..3d654741fce4f90d27e4411b6e550d168fb8cdd9 100644
(file)
--- a/
.github/workflows/publish.yml
+++ b/
.github/workflows/publish.yml
@@
-36,6
+36,10
@@
jobs:
with:
repository: mdref/mdref-raphf
path: refs/raphf
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
- name: Install dependencies
run: |
sudo apt-get update -y
@@
-52,28
+56,32
@@
jobs:
libbrotli-dev
- name: Install referenced php extensions for stubs
run: |
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=$(
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
| jq -r 'to_entries[-1].value.".bz2".phar'
)
curl -sSLO replicator.pharext.org/$phar
- php $
phar -
s
+ php $
(basename $phar) -q
s
done
- name: Install composer dependencies
run: |
composer install
- name: Generate HTML
run: |
done
- name: Install composer dependencies
run: |
composer install
- name: Generate HTML
run: |
- mkdir html
+ mkdir
-p
html
cd html
cd html
- ./bin/ref2html . ../refs/*
+ .
.
/bin/ref2html . ../refs/*
- name: Generate STUBs
run: |
cd html
for ext in http pq; do
- name: Generate STUBs
run: |
cd html
for ext in http pq; do
- ../bin/ref2stub $ext
+ ../bin/ref2stub
../refs/
$ext
done
done
+ - name: Show changes
+ run: |
+ cd html
+ git diff
- uses: crazy-max/ghaction-github-pages@v2
if: success()
env:
- uses: crazy-max/ghaction-github-pages@v2
if: success()
env: