Skip to content

Merge pull request #29 from Goboolean/feature/migration #3

Merge pull request #29 from Goboolean/feature/migration

Merge pull request #29 from Goboolean/feature/migration #3

Workflow file for this run

name: Deploy on Develop Server
on:
push:
branches:
- develop
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Send
uses: appleboy/scp-action@master
with:
host: ${{ secrets.DEVELOP_HOST }}
username: ${{ secrets.DEVELOP_USERNAME }}
key: ${{ secrets.DEVELOP_SSH_KEY }}
port: ${{ secrets.DEVELOP_PORT }}
source: "."
target: ${{ secrets.DEVELOP_DIR }}
- name: Test
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.DEVELOP_HOST }}
username: ${{ secrets.DEVELOP_USERNAME }}
key: ${{ secrets.DEVELOP_SSH_KEY }}
port: ${{ secrets.DEVELOP_PORT }}
script: |
cd ${{ secrets.DEVELOP_DIR }}
make test-app
deploy:
needs: [test]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Send
uses: appleboy/scp-action@master
with:
host: ${{ secrets.DEVELOP_HOST }}
username: ${{ secrets.DEVELOP_USERNAME }}
key: ${{ secrets.DEVELOP_SSH_KEY }}
port: ${{ secrets.DEVELOP_PORT }}
source: "."
target: ${{ secrets.DEVELOP_DIR }}
- name: Deploy
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.DEVELOP_HOST }}
username: ${{ secrets.DEVELOP_USERNAME }}
key: ${{ secrets.DEVELOP_SSH_KEY }}
port: ${{ secrets.DEVELOP_PORT }}
script: |
cd ${{ secrets.DEVELOP_DIR }}
make build-app