Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
rasulov1337 committed Dec 20, 2024
1 parent d7f3e89 commit 43d96ec
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/nodejs-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,19 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Get current branch name
id: branch_name
run: echo "BRANCH=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT

- name: Install SSH Client
run: sudo apt-get update && sudo apt-get install -y openssh-client

- name: Add SSH key to the agent
uses: webfactory/ssh-[email protected]
- name: chmod
uses: appleboy/ssh-action@master
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
host: 37.139.41.110
username: ubuntu
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: ssh [email protected] "mkdir -p /home/ubuntu/frontend/"

- name: Create remote directory (if it doesn't exist)
run: ssh [email protected] "mkdir -p /home/ubuntu/frontend/"
# - name: Create remote directory (if it doesn't exist)
# run: ssh [email protected] "mkdir -p /home/ubuntu/frontend/"

- name: Copy build artifacts via SSH
run: rsync -avzP ./dist/ [email protected]:/home/ubuntu/frontend/

0 comments on commit 43d96ec

Please sign in to comment.