christianlempa-boilerplates/github-actions/scp-action/copy-config-files.yml

27 lines
559 B
YAML
Raw Normal View History

2023-04-26 17:02:03 +02:00
name: copy config files to remote machine
on:
push:
branches:
- main
paths:
- 'config/**'
jobs:
deploy:
runs-on: your-runner
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Upload new Config Files
uses: appleboy/scp-action@master
with:
username: your-username
host: your-host
key: ${{ secrets.your-private-ssh-key }}
source: './config/*'
target: '/target/path/'
strip_components: 1 # remove the top level directory