mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2025-02-25 15:00:46 +01:00
28 lines
600 B
YAML
28 lines
600 B
YAML
---
|
|
name: copy config files to remote machine
|
|
|
|
on: # yamllint disable-line rule:truthy
|
|
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
|