Skip to content

fix ci

fix ci #15

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 }}")

Check failure on line 13 in .github/workflows/ci-cd.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci-cd.yaml

Invalid workflow file

You have an error in your yaml syntax on line 13
- 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'