site/.github/workflows/main.yml

27 lines
608 B
YAML
Raw Normal View History

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.WEBMASTER_USERNAME }}
password: ${{ secrets.WEBMASTER_PASSWORD }}
source: "public/*"
2020-03-21 20:43:44 +03:00
target: "/home/webmaster/"