Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
bendn committed Feb 21, 2024
1 parent f82632f commit aabe082
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,16 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: write secret
shell: python
run: |
with open("pass", "w") as f: f.write("${{ secrets.SSH_PASS }}")
- name: Run SSHPASS
run: |
sshpass \
-p ${{ secrets.SSH_PASS }} \
-f pass \
ssh \
-o 'StrictHostKeyChecking no' \
-p ${{ secrets.SSH_PORT }} ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} \
'cd /root/selendra-explorer-nextjs && git checkout main && git pull && npm i --force && npm run build && pm2 restart 4'
-p ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} \
'cd /root/selendra-explorer-nextjs && git checkout main && git checkout . && git pull --rebase && npm i --force && npm run build && pm2 restart 4'

0 comments on commit aabe082

Please sign in to comment.