diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 00000000..6f7f9af4 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,26 @@ +name: deploy +on: + push: + branches: + - master +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: checkout repository + uses: actions/checkout@v2 + - name: install dependencies + run: npm install + - name: build + run: npm run buildProd + - name: copy build to server + uses: appleboy/scp-action + with: + host: ${{secrets.SERVER_HOST}} + username: ${{secrets.SERVER_USERNAME}} + key: ${{secrets.SERVER_SSH_KEY}} + port: ${{secrets.SERVER_PORT}} + source: /dist/spa + target: /home/arborator/arborator-frontend-test + +