use SFTP instead
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 10s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 10s
This commit is contained in:
@@ -16,13 +16,13 @@ jobs:
|
|||||||
- name: List files in the repository
|
- name: List files in the repository
|
||||||
run: |
|
run: |
|
||||||
ls ${{ gitea.workspace }}
|
ls ${{ gitea.workspace }}
|
||||||
- name: Copy files with SCP
|
- name: Copy files with SFTP
|
||||||
uses: appleboy/scp-action@v1
|
uses: wlixcc/SFTP-Deploy-Action@v1.2.6
|
||||||
with:
|
with:
|
||||||
host: ${{ secrets.HOST }}
|
server: ${{ secrets.HOST }}
|
||||||
username: ${{ secrets.USERNAME }}
|
username: ${{ secrets.USERNAME }}
|
||||||
password: ${{ secrets.PASSWORD }}
|
password: ${{ secrets.PASSWORD }}
|
||||||
port: 22
|
local_path: './public/*'
|
||||||
source: "public/*"
|
rempote_path: 'www'
|
||||||
target: "www/"
|
sftp_only: true
|
||||||
- run: echo "🍏 This job's status is ${{ job.status }}."
|
- run: echo "🍏 This job's status is ${{ job.status }}."
|
||||||
|
|||||||
Reference in New Issue
Block a user