Skip to content

Update php.yml

Update php.yml #2

Workflow file for this run

name: PHP Composer
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
# Build the demo page with PHP, because, why not? CPU's are cheap in 2024 🤭 (and we support Unicode 🎉)
- name: build demo page
run: php index.php > index.html
- name: Configure GitHub Pages
uses: actions/configure-pages@v3
- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v2
with:
path: '.'
deploy:
environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2