Adds multilingual support for meta keywords and updates HTML structur… #129
This file contains hidden or 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 to Production | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| concurrency: production_deploy | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - run: npm ci | |
| - run: npm run build | |
| - name: Zip Artifacts | |
| run: tar -czf build.tar.gz public/build composer.json composer.lock app config database routes resources artisan | |
| - name: Copy files via SCP | |
| uses: appleboy/scp-action@master | |
| continue-on-error: true | |
| with: | |
| host: ${{ secrets.SSH_HOST }} | |
| username: ${{ secrets.SSH_USER }} | |
| key: ${{ secrets.SSH_KEY }} | |
| source: "build.tar.gz" | |
| target: "/var/www/goat-app/" | |
| - name: Execute Remote SSH Commands | |
| uses: appleboy/ssh-action@master | |
| continue-on-error: true | |
| with: | |
| host: ${{ secrets.SSH_HOST }} | |
| username: ${{ secrets.SSH_USER }} | |
| key: ${{ secrets.SSH_KEY }} | |
| script: | | |
| cd /var/www/goat-app | |
| tar -xzf build.tar.gz | |
| rm build.tar.gz | |
| composer install --no-dev --optimize-autoloader | |
| php artisan migrate --force | |
| php artisan optimize:clear | |
| php artisan config:cache | |
| php artisan route:cache | |
| php artisan view:cache | |
| sudo supervisorctl restart all |