Skip to content

Instantly share code, notes, and snippets.

@kagg-design
Created August 28, 2025 16:59
Show Gist options
  • Save kagg-design/a30b2d4b312086b6a061cddf5a9caf3c to your computer and use it in GitHub Desktop.
Save kagg-design/a30b2d4b312086b6a061cddf5a9caf3c to your computer and use it in GitHub Desktop.
prod.yml
name: Deploy to Prod
on:
push:
branches:
- master
jobs:
release:
name: Deploy to Prod
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies with caching
uses: kagg-design/composer-install@v2
with:
composer-options: "--no-dev --optimize-autoloader --classmap-authoritative"
- name: Install packages
run: |
corepack enable
yarn set version stable
yarn
yarn prod
- name: Deploy the code
uses: burnett01/[email protected]
with:
switches: -cvzr --delete --exclude-from=.distignore --chmod=D775,F664
path: ${{ env.GITHUB_WORKSPACE }}
remote_path: /var/www/gts/wp-content/plugins/quote/
remote_host: x.x.x.x
remote_user: xxxx
remote_key: ${{ secrets.DEPLOY_KEY }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment