19 lines
493 B
YAML
19 lines
493 B
YAML
on: [push]
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
name: A job for testing
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Sync
|
|
id: rsync
|
|
uses: up9cloud/action-rsync@master
|
|
env:
|
|
HOST: ${{secrets.DEPLOY_HOST}}
|
|
KEY: ${{secrets.DEPLOY_SSH_KEY}}
|
|
TARGET: /tmp/action-rsync/
|
|
VERBOSE: true
|
|
PRE_SCRIPT: "echo I ❤️ this action!\ndate -u --rfc-3339=ns"
|
|
POST_SCRIPT: "ls -al /tmp/action-rsync && date -u --rfc-3339=ns"
|