copy-config-files.yml 559 B

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