2020-03-21 15:57:23 +03:00
|
|
|
name: copy build to master
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2020-03-21 22:53:30 +03:00
|
|
|
- elinorre
|
2020-03-21 15:57:23 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: copy build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@master
|
|
|
|
|
|
|
|
- name: install dependencies
|
|
|
|
run: npm install
|
|
|
|
|
|
|
|
- name: build
|
|
|
|
run: node_modules/gatsby/dist/bin/gatsby.js build
|
|
|
|
|
|
|
|
- name: copy file via ssh password
|
|
|
|
uses: appleboy/scp-action@master
|
|
|
|
with:
|
|
|
|
host: ${{ secrets.HOST }}
|
2020-03-21 22:56:17 +03:00
|
|
|
username: ${{ secrets.WEBMASTER_USERNAME }}
|
|
|
|
password: ${{ secrets.WEBMASTER_PASSWORD }}
|
2020-03-21 15:57:23 +03:00
|
|
|
source: "public/*"
|
2020-03-21 22:53:30 +03:00
|
|
|
target: "/var/www/html_new/"
|