Skip to content

Commit

Permalink
test scp
Browse files Browse the repository at this point in the history
  • Loading branch information
brehen committed Jan 29, 2024
1 parent 74005b3 commit 37f3520
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/test-scp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Please scp

on:
push:
branches: [scp]

jobs:
build:
steps:
- uses: actions/checkout@v4

- name: Prepare deploy
run: echo "marco" > marco.txt

- name: Deploy to Server via SCP
uses: appleboy/scp-action@master
with:
host: ${{ secrets.SERVER_IP }}
username: ${{ secrets.SERVER_USER }}
# password: ${{ secrets.SERVER_PASSWORD }} # Use either password or key
key: ${{ secrets.SERVER_SSH_KEY }}
port: 22
source: "marco.txt"
target: "/home/debian/"

- name: Cleanup
run: rm marco.txt

0 comments on commit 37f3520

Please sign in to comment.