copy-config-files.yml 600 B

123456789101112131415161718192021222324252627
  1. ---
  2. name: copy config files to remote machine
  3. on: # yamllint disable-line rule:truthy
  4. push:
  5. branches:
  6. - main
  7. paths:
  8. - 'config/**'
  9. jobs:
  10. deploy:
  11. runs-on: your-runner
  12. steps:
  13. - name: Checkout
  14. uses: actions/checkout@v2
  15. - name: Upload new Config Files
  16. uses: appleboy/scp-action@master
  17. with:
  18. username: your-username
  19. host: your-host
  20. key: ${{ secrets.your-private-ssh-key }}
  21. source: './config/*'
  22. target: '/target/path/'
  23. strip_components: 1 # remove the top level directory