add #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Please scp | |
on: | |
push: | |
branches: [scp] | |
jobs: | |
build: | |
name: "Test nebula on ${{matrix.os}}" | |
runs-on: ${{matrix.os}} | |
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 |