site/.github/workflows/main.yml
2020-06-26 10:00:23 +03:00

27 lines
565 B
YAML

name: deploy
on:
push:
branches:
- master
jobs:
build:
name: build and deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.1
- name: Build Gatsby Site
uses: jzweifel/gatsby-cli-github-action@v1.0.0
with:
gatsby-arg: build
- name: Deply via ssh
uses: appleboy/scp-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.WEBMASTER_USERNAME }}
password: ${{ secrets.WEBMASTER_PASSWORD }}
source: "public/*"
target: "html/"