fix: add localhost at cors origins #97
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Backend on Development Server | |
on: | |
push: | |
branches: | |
- main | |
env: | |
HOST: ${{ secrets.HOST }} | |
USERNAME: ${{ secrets.USERNAME }} | |
KEY: ${{ secrets.SSH_KEY }} | |
PORT: ${{ secrets.PORT }} | |
INSTANCE_PATH: ./backend-dev | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Send | |
uses: appleboy/scp-action@master | |
with: | |
host: ${{ env.HOST }} | |
username: ${{ env.USERNAME }} | |
key: ${{ env.KEY }} | |
port: ${{ env.PORT }} | |
source: "." | |
target: ${{ env.INSTANCE_PATH }} | |
- name: Deploy | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ env.HOST }} | |
username: ${{ env.USERNAME }} | |
key: ${{ env.KEY }} | |
port: ${{ env.PORT }} | |
script: | | |
cd ${{ env.INSTANCE_PATH }} | |
make build-dev |