2024-12-27 11:45:43 +01:00
|
|
|
---
|
2023-04-26 17:02:03 +02:00
|
|
|
name: copy config files to remote machine
|
|
|
|
|
2024-12-27 11:45:43 +01:00
|
|
|
on: # yamllint disable-line rule:truthy
|
2023-04-26 17:02:03 +02:00
|
|
|
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/'
|
2024-02-22 19:01:59 +01:00
|
|
|
strip_components: 1 # remove the top level directory
|