GitHub Actions
name: Deploy
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v1
- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
- name: Install Composer Dependencies
run: composer install --no-ansi --no-interaction --no-suggest --no-progress --prefer-dist
- name: Install Yarn Dependencies
run: yarn install
- name: Generate key
run: php artisan key:generate
- name: Mix assets
run: yarn production
- name: Export page
run: php artisan export --env=prod --skip-assets --skip-deploy
- name: Netlify deploy
uses: netlify/actions/cli@master
with:
args: deploy --prod
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}Last updated
Was this helpful?