site/.github/workflows/main.yml

28 lines
588 B
YAML
Raw Normal View History

2020-06-25 11:49:12 +03:00
name: deploy
on:
push:
branches:
2020-06-25 11:49:12 +03:00
- master
jobs:
build:
2020-06-25 11:49:12 +03:00
name: build and deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
2020-06-26 09:34:30 +03:00
- name: Build Gatsby Site
uses: jzweifel/gatsby-cli-github-action@master
with:
gatsby-arg: build
2020-06-26 09:34:30 +03:00
- name: Deply via ssh
uses: appleboy/scp-action@master
with:
host: ${{ secrets.HOST }}
2020-06-25 17:42:01 +03:00
username: ${{ secrets.WEBMASTER_USERNAME }}
2020-06-25 22:54:04 +03:00
password: ${{ secrets.WEBMASTER_PASSWORD }}
source: "public/*"
2020-06-26 09:34:30 +03:00
target: "html"
2020-06-25 11:49:12 +03:00
overwrite: true