Skip to content

chore(ci)

chore(ci) #1

Workflow file for this run

name: Build HydePHP Project
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
extensions: mbstring, xml, ctype, json, tokenizer
coverage: none
- name: Install Composer dependencies
run: |
composer install
- name: Build HydePHP project
run: |
cd src && php hyde build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site