Skip to content

Commit

Permalink
feat: added github deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
favoyang committed Dec 10, 2019
1 parent b340c0d commit a7a506d
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: deploy

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Deploy to upm-api
uses: maddox/actions/ssh@master
env:
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
HOST: ${{ secrets.HOST_UPM_API }}
USER: ${{ secrets.USER }}
with:
args: |
cd /home/openupm/openupm
git pull
pm2 reload all
- name: Deploy to upm-build
uses: maddox/actions/ssh@master
env:
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
HOST: ${{ secrets.HOST_UPM_BUILD }}
USER: ${{ secrets.USER }}
with:
args: |
cd /home/openupm/openupm
git pull
pm2 reload all

0 comments on commit a7a506d

Please sign in to comment.