Fixed CWD in PHP workflow

Update php-render.yml
This commit is contained in:
Herwin Bozet (NibblePoker) 2024-11-26 21:41:04 +01:00
parent f04a33378c
commit bcc7cf6c98

View File

@ -32,11 +32,13 @@ jobs:
- name: Pre-render PHP File - name: Pre-render PHP File
run: | run: |
php ./htdocs/index.php > ./htdocs/index.raw.html cd htdocs
php ./index.php > ./index.raw.html
- name: Beautify HTML - name: Beautify HTML
run: | run: |
beautify -o ./htdocs/index.raw.html ./htdocs/index.html cd htdocs
beautify -o ./index.raw.html ./index.html
- name: Upload `index.html` build artifact - name: Upload `index.html` build artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4