This commit is contained in:
Elinorre 2020-03-21 15:57:23 +03:00
parent 15ead7c842
commit 0fab11adde
2 changed files with 29 additions and 1 deletions

27
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: copy build to master
on:
push:
branches:
- master
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 }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
source: "public/*"
target: "/home/elinorre/"

View File

@ -62,4 +62,5 @@ gatsby develop
### **С помощью Netlify CMS**
1. К пути сайта добавляем `/admin`, оказываемся в панели администратора.
2. Вносим нужные изменения и сохраняем.
2. Вносим нужные изменения.
3. Сохраняем.