Update main.yml

This commit is contained in:
Alexander Nozik 2020-06-26 09:34:30 +03:00 committed by GitHub
parent 8d8592adb9
commit de518d17ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,18 +11,17 @@ jobs:
steps:
- uses: actions/checkout@master
- name: install dependencies
run: npm install
- name: Build Gatsby Site
uses: jzweifel/gatsby-cli-github-action@master
with:
gatsby-arg: build
- name: build
run: node_modules/gatsby/dist/bin/gatsby.js build
- name: copy file via ssh password
- name: Deply via ssh
uses: appleboy/scp-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.WEBMASTER_USERNAME }}
password: ${{ secrets.WEBMASTER_PASSWORD }}
source: "public/*"
target: "/home/webmaster/html/"
target: "html"
overwrite: true