Skip to content

feat: ci 脚本先进入目录 #4

feat: ci 脚本先进入目录

feat: ci 脚本先进入目录 #4

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using password
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: cd /var/www/blog && npm i && npm run build && echo "success"