Skip to content

update repo name: fetch-server -> fetch-server.v1 #7

update repo name: fetch-server -> fetch-server.v1

update repo name: fetch-server -> fetch-server.v1 #7

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