-
-
Notifications
You must be signed in to change notification settings - Fork 1
21 lines (20 loc) · 619 Bytes
/
deploy.yml
File metadata and controls
21 lines (20 loc) · 619 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
name: Deploy
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
environment:
name: production
url: https://saahild.com/ai-blog
steps:
- name: executing remote ssh commands using password
uses: appleboy/ssh-action@v0.1.8
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: |
cd /root
PUBLIC_URL=/ai-blog bash ./deploy_project.sh ${{ github.event.repository.name }} ai-blog "npm install" "npm run build"