Skip to content

fix ci

fix ci #16

Workflow file for this run

name: Auto Build Deploy Client
on:
push:
branches:
- main
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
shell: python
run: |
sshpass \
-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 --rebase && npm i --force && npm run build && pm2 restart 4'