Merge request changes from daniel #198
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: Laravel/Lumen CI/CD | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
web-deploy: | |
name: Deploying | |
runs-on: ubuntu-latest | |
steps: | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "8.2.13" | |
- uses: actions/checkout@v2.3.2 | |
# - name: Copy .env | |
# run: php -r "file_exists('.env') || copy('.env.example', '.env');" | |
- name: Install Dependencies | |
run: composer update --ignore-platform-reqs | |
# - name: Generate key | |
# run: php artisan key:generate | |
- name: Directory Permissions | |
run: chmod -R 775 storage | |
- name: 📂 Sync files | |
uses: SamKirkland/FTP-Deploy-Action@4.0.0 | |
with: | |
server: ${{ secrets.FTP_SERVER }} | |
username: ${{ secrets.FTP_USERNAME }} | |
password: ${{ secrets.FTP_PASSWORD }} |