Fix php version #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Deploy" | |
on: | |
push: | |
branches: | |
- "main" | |
jobs: | |
build: | |
name: Build & Deploy Site | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
coverage: none | |
extensions: intl | |
ini-values: memory_limit=-1 | |
php-version: 8.3 | |
- name: Install dependencies | |
run: | | |
composer install -n | |
npm install | |
- name: Build site | |
run: npm run prod | |
- name: Commit new build | |
run: | | |
git add -f build_production | |
git config --global user.email "[email protected]" | |
git config --global user.name "Jordi Boggiano" | |
git commit -m "Build for deploy" | |
git subtree split --prefix build_production -b gh-pages | |
git push -f origin gh-pages |