Skip to content

Commit

Permalink
first job
Browse files Browse the repository at this point in the history
  • Loading branch information
sshresthadh committed Jan 29, 2024
1 parent 6d5a3a1 commit 51c7247
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/run-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,25 @@ jobs:
- name: Checkout codecs
uses: actions/checkout@v2

# - name: Run scripts on servers via SSH
# uses: appleboy/[email protected]
# with:
# hhost: ${{ secrets.REMOTE_HOST }}
# username: ${{ secrets.REMOTE_USERNAME }}
# port: ${{ secrets.SSH_PORT }}
# key: ${{ secrets.SSH_PRIVATE_KEY }}
# script: |
# sudo apt install nginx

- name: copy file via ssh key
uses: appleboy/[email protected]
- name: Run scripts on servers via SSH
uses: appleboy/[email protected]
with:
host: ${{ secrets.REMOTE_HOST }}
username: ${{ secrets.REMOTE_USERNAME }}
port: ${{ secrets.SSH_PORT }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
source: "help.txt"
target: /tmp
script: |
sudo apt install nginx
# - name: copy file via ssh key
# uses: appleboy/[email protected]
# with:
# host: ${{ secrets.REMOTE_HOST }}
# username: ${{ secrets.REMOTE_USERNAME }}
# port: ${{ secrets.SSH_PORT }}
# key: ${{ secrets.SSH_PRIVATE_KEY }}
# source: "help.txt"
# target: /tmp


- name: Update Git code on the servers
Expand Down

0 comments on commit 51c7247

Please sign in to comment.