Skip to content

Commit cd446d6

Browse files
author
Laegel
committed
chore(ci)
1 parent 4595536 commit cd446d6

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/build.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build HydePHP Project
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v3
18+
19+
- name: Set up PHP
20+
uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: '8.4'
23+
extensions: mbstring, xml, ctype, json, tokenizer
24+
coverage: none
25+
26+
- name: Install Composer dependencies
27+
run: |
28+
composer install
29+
30+
- name: Build HydePHP project
31+
run: |
32+
cd src && php hyde build
33+
34+
- name: Deploy to GitHub Pages
35+
uses: peaceiris/actions-gh-pages@v3
36+
with:
37+
github_token: ${{ secrets.GITHUB_TOKEN }}
38+
publish_dir: ./_site

0 commit comments

Comments
 (0)