Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #428

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,58 @@ jobs:
password: ${{ secrets.password }}
```

## Laravel
#### Build and Publish Laravel Website
```yml
# This is a basic workflow to help you get started with Actions

name: 🚀 Deploye

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
types: [closed]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
web-deploy:
name: 🎉 Deploying
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v3
solomon-ochepa marked this conversation as resolved.
Show resolved Hide resolved

# - name: Copy .env
# run: php -r "file_exists('.env') || copy('.env.example', '.env');"
# - name: Generate key
# run: php artisan key:generate

- name: Install Dependencies
run: composer update --ignore-platform-reqs

- name: Directory Permissions
run: chmod -R 775 storage

- name: Clear Caches
run: php artisan optimize:clear

- name: Storage link
run: php artisan storage:link --force

- name: 📂 Sync files
uses: SamKirkland/FTP-Deploy-Action@v4.3.4
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
server-dir: '/public_html/example/'
```

#### FTPS
```yml
on: push
Expand Down