From 824162bbafb8c6d394e12406ca337398be4cc855 Mon Sep 17 00:00:00 2001 From: Anthony Fok Date: Thu, 28 Dec 2023 18:07:12 -0700 Subject: [PATCH] Generate phpinfo.html just for the site preview --- .github/workflows/deploy-preview-site.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-preview-site.yml b/.github/workflows/deploy-preview-site.yml index 482a862..f1492a0 100644 --- a/.github/workflows/deploy-preview-site.yml +++ b/.github/workflows/deploy-preview-site.yml @@ -48,8 +48,11 @@ jobs: sudo eatmydata apt-get update sudo eatmydata apt-get -y install httrack + - name: Generate phpinfo for the static site + run: echo '' > data/phpinfo.php + - name: Mirror website to get static pages - run: httrack http://localhost:8080/index{,-en,-fr}.php -%k -%v2 -%F "" -A0 -I0 -s0 + run: httrack http://localhost:8080/{index{,-en,-fr},phpinfo}.php -%k -%v2 -%F "" -A0 -I0 -s0 - name: Copy static site and fix absolute links to *.php run: |