jsquotes/.gitea/workflows/deploy.yaml
Camille Frantz 78ae9187d5
All checks were successful
deploy updated site / rsync the directories (pull_request) Successful in 42s
forgot to alter the workflow to use cwd and .excludes instead of public/
2024-11-08 12:51:23 -06:00

27 lines
661 B
YAML

on:
push:
branches:
- main
paths-ignore:
- .gitignore
- README.md
- LICENSE
pull_request:
name: deploy updated site
jobs:
deploy:
name: rsync the directories
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
- name: deploy
uses: easingthemes/ssh-deploy@v5.1.0
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
ARGS: '-avz --delete --exclude-from=.gitea/.excludes'
SOURCE: .
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_USER: ${{ secrets.REMOTE_USER }}
TARGET: ${{ secrets.TARGET }}