Skip to content

Merge pull request #101 from wakfi/roles/f23 #142

Merge pull request #101 from wakfi/roles/f23

Merge pull request #101 from wakfi/roles/f23 #142

Workflow file for this run

name: Deploy
on: [push]
jobs:
deploy-main:
if: github.ref == 'refs/heads/main'
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v1
- name: Push to server
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
port: 22
key: ${{ secrets.SSHKEY }}
script: cd ${{ secrets.PROJECTPATH }} && git checkout -- . && git pull origin main && npm i && pm2 restart roboboi
deploy-canary:
if: github.ref == 'refs/heads/canary'
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v1
- name: Push to server
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
port: 22
key: ${{ secrets.SSHKEY }}
script: cd ${{ secrets.CANARYPATH }} && git checkout -- . && git pull origin canary && npm i && pm2 restart canaryada