Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
sshresthadh committed Jan 31, 2024
1 parent b05e395 commit 306e233
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,24 @@ jobs:

- name: Build Application
run: CI=false npm run build

- name: Transfer Build Files to Ubuntu Instance
uses: appleboy/scp-action@master
- name: Setup SSH
uses: shimataro/ssh-key-action@v2
with:
host: ${{ secrets.REMOTE_HOST }}
username: ${{ secrets.REMOTE_USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
source: "build"
target: "/tmp"
known_hosts: ${{ secrets.KNOWN_HOSTS }}

- name: Transfer Build Files to Ubuntu Instance
run: scp -r build/* ${{ secrets.REMOTE_USERNAME }}@${{ secrets.REMOTE_HOST }}:/tmp

# - name: Transfer Build Files to Ubuntu Instance
# uses: appleboy/scp-action@master
# with:
# host: ${{ secrets.REMOTE_HOST }}
# username: ${{ secrets.REMOTE_USERNAME }}
# key: ${{ secrets.SSH_PRIVATE_KEY }}
# source: "build"
# target: "/tmp"

# - name: Check ls j
# run: ls
Expand Down

0 comments on commit 306e233

Please sign in to comment.