Created
August 28, 2025 16:59
-
-
Save kagg-design/a30b2d4b312086b6a061cddf5a9caf3c to your computer and use it in GitHub Desktop.
prod.yml
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 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