fix: remove gap #1195
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: Build and deploy styleguide | |
on: | |
push: | |
branches: | |
- "master" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- name: Setup PHP with composer v2 | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.2' | |
tools: composer:v2 | |
- name: Execute buildscript. | |
run: php ./build.php --cleanup | |
- name: rsync deploy files and set www-data user. | |
uses: burnett01/[email protected] | |
with: | |
switches: -avzrog --backup --backup-dir=${{ secrets.BACKUP_PATH }}/$GITHUB_SHA --chown=www-data:www-data | |
path: . | |
remote_path: ${{ secrets.DEPLOY_PATH }} | |
remote_host: ${{ secrets.DEPLOY_HOST }} | |
remote_user: ${{ secrets.DEPLOY_USER }} | |
remote_key: ${{ secrets.DEPLOY_KEY }} | |
remote_port: ${{ secrets.DEPLOY_PORT }} | |
- name: Set file permissions. | |
uses: appleboy/ssh-action@master | |
with: | |
script: find ${{ secrets.DEPLOY_PATH }} -path ${{ secrets.DEPLOY_PATH }}/wp-content/uploads -prune -o ! -type l -exec chmod g+rw {} + | |
host: ${{ secrets.DEPLOY_HOST }} | |
username: ${{ secrets.DEPLOY_USER }} | |
key: ${{ secrets.DEPLOY_KEY }} | |
port: ${{ secrets.DEPLOY_PORT }} | |
- name: Clear all cache. | |
uses: appleboy/[email protected] | |
with: | |
script: | | |
cd ${{ secrets.DEPLOY_PATH }} | |
rm -rf ${{ secrets.DEPLOY_PATH }}/../.cache/vhosts/Jelastic/* || true | |
rm /tmp/blade-engine-cache/* || true | |
host: ${{ secrets.DEPLOY_HOST }} | |
username: ${{ secrets.DEPLOY_USER }} | |
key: ${{ secrets.DEPLOY_KEY }} | |
port: ${{ secrets.DEPLOY_PORT }} |