2023-09-15 13:58:47 +00:00
|
|
|
|
name: ️Upload Website
|
2023-09-15 13:46:35 +00:00
|
|
|
|
|
|
|
|
|
on: [ push ]
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
sftp:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
steps:
|
2023-09-15 13:58:47 +00:00
|
|
|
|
- name: Checkout the repository
|
2023-09-15 13:46:35 +00:00
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
2023-09-15 13:58:47 +00:00
|
|
|
|
- name: Upload files via SFTP
|
2023-09-15 13:46:35 +00:00
|
|
|
|
uses: https://github.com/wangyucode/sftp-upload-action@v2.0.2
|
|
|
|
|
with:
|
|
|
|
|
host: ${{ secrets.HOST }}
|
|
|
|
|
username: ${{ secrets.USER }}
|
|
|
|
|
password: ${{ secrets.PASSWORD }}
|
|
|
|
|
forceUpload: true
|
|
|
|
|
localDir: '.'
|
|
|
|
|
remoteDir: '/var/www/crss'
|
2023-09-15 14:12:48 +00:00
|
|
|
|
exclude: '.git,.git*,.env.*,LICENSE,README.md'
|