Skip to content

fixed typos in deploy.yml #4

fixed typos in deploy.yml

fixed typos in deploy.yml #4

Workflow file for this run

name: Deploy static site to Cloudflare Pages
on:
push:
branches:
- master
jobs:
build-deploy:
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.2' # Or your PHP version
extensions: mbstring, xml, dom, sqlite3
ini-values: post_max_size=256M, upload_max_filesize=256M
- name: Install Composer dependencies
run: composer install
- name: Set APP_DEBUG to true for debugging
run: |
echo "APP_ENV=production" >> .env
echo "APP_DEBUG=true" >> .env
echo "APP_URL=https://electrik.dev" >> .env
echo "LOG_CHANNEL=stack" >> .env
echo "DB_DATABASE=:memory:" >> .env
- name: Build static files
run: php artisan export
- name: Deploy to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: ${{ secrets.CLOUDFLARE_PROJECT_NAME }}
directory: dist