Skip to content

Create main.yml

Create main.yml #1

Workflow file for this run

name: Build & deploy
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Deploy
uses: easingthemes/[email protected]
env:
SSH_PRIVATE_KEY: ${{ secrets.DEPLOYUSER_SSH_KEY }}
REMOTE_HOST: ${{ secrets.DEPLOYUSER_HOST }}
REMOTE_USER: ${{ secrets.DEPLOYUSER_USER }}
REMOTE_PORT: ${{ secrets.DEPLOYUSER_PORT }}
TARGET: "/srv/www/www.asteriski.fi/wp-content/plugins/wp-asteriski-auto-email/"
EXCLUDE: "/.git/"
with:
args: "-avz --delete --chmod=ug=rwx,o=rx --chown=github-deploy:www-data --progress"