diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml index 06737bd..fcccd8c 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/demo.yaml @@ -16,13 +16,13 @@ jobs: - name: List files in the repository run: | ls ${{ gitea.workspace }} - - name: Copy files with SCP - uses: appleboy/scp-action@v1 + - name: Copy files with SFTP + uses: wlixcc/SFTP-Deploy-Action@v1.2.6 with: - host: ${{ secrets.HOST }} + server: ${{ secrets.HOST }} username: ${{ secrets.USERNAME }} password: ${{ secrets.PASSWORD }} - port: 22 - source: "public/*" - target: "www/" + local_path: './public/*' + rempote_path: 'www' + sftp_only: true - run: echo "🍏 This job's status is ${{ job.status }}."