-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 946 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Deploy to Live
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Create local changes
run: |
yarn install
yarn run build
yarn run icons
- name: Commit and push local changes
uses: stefanzweifel/git-auto-commit-action@v5.0.1
with:
commit_message: Apply theme changes
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using password
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
password: ${{ secrets.SSH_PASSWORD }}
port: ${{ secrets.SSH_PORT }}
script: |
cd einstein
git pull
php82 /usr/bin/composer install --no-dev -d ${PWD}