Added artifact retrieval
Update php-render.yml and sass-compile.yml
This commit is contained in:
parent
20beca9025
commit
4e55a42e54
24
.github/workflows/php-render.yml
vendored
24
.github/workflows/php-render.yml
vendored
@ -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
|
||||||
|
2
.github/workflows/sass-compile.yml
vendored
2
.github/workflows/sass-compile.yml
vendored
@ -5,7 +5,7 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
sass_compile:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
|
Loading…
Reference in New Issue
Block a user