Added artifact retrieval

Update php-render.yml and sass-compile.yml
This commit is contained in:
Herwin Bozet (NibblePoker) 2024-11-26 21:48:51 +01:00
parent 20beca9025
commit 4e55a42e54
2 changed files with 17 additions and 9 deletions

View File

@ -1,19 +1,27 @@
name: Render PHP Demo Page name: Render PHP Demo Page
on: on:
push: workflow_run:
pull_request: workflows:
- Compile SASS
types:
- completed
jobs: jobs:
prerender: php_render:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout Git submodules - name: Download artifact
uses: actions/checkout@v4 uses: actions/download-artifact@v3
if: ${{ github.actor == 'aziascreations' }}
with: with:
submodules: true path: ./htdocs/css
fetch-depth: 0
- name: Display structure of downloaded files
run: |
cd ./htdocs/css
ls -R
- name: Setup PHP - name: Setup PHP
uses: shivammathur/setup-php@v2 uses: shivammathur/setup-php@v2
@ -24,7 +32,7 @@ jobs:
- name: Pre-render PHP File - name: Pre-render PHP File
run: | run: |
cd htdocs cd htdocs
php ./index.php > ./index.raw.html php ./index.php > ./index.html
- name: Upload `index.html` build artifact - name: Upload `index.html` build artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4

View File

@ -5,7 +5,7 @@ on:
pull_request: pull_request:
jobs: jobs:
deploy: sass_compile:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions: