Skip to content

Commit

Permalink
Generate phpinfo.html just for the site preview
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyfok committed Dec 29, 2023
1 parent eeff372 commit 824162b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/deploy-preview-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 '<?php phpinfo() ?>' > 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: |
Expand Down

0 comments on commit 824162b

Please sign in to comment.