Remove emoji to fix preview image #191
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 website | |
on: | |
push: | |
branches: | |
- "main" | |
jobs: | |
deploy: | |
name: Deploy website | |
runs-on: "ubuntu-22.04" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@main | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install asset deps | |
run: npm install | |
- name: Build production assets | |
run: npx tailwind -i assets/css/app.css -o source/assets/css/app.css --minify | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.3 | |
extensions: mbstring, intl, readline | |
tools: composer:v2 | |
- name: Install PHP deps | |
uses: ramsey/composer-install@v2 | |
- name: Build production site | |
run: ./vendor/bin/sculpin generate --env=prod | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v4 | |
if: ${{ github.ref == 'refs/heads/main' }} | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./output_prod | |
cname: thephp.foundation |