Update main.yml
This commit is contained in:
parent
8d8592adb9
commit
de518d17ac
13
.github/workflows/main.yml
vendored
13
.github/workflows/main.yml
vendored
@ -11,18 +11,17 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
|
|
||||||
- name: install dependencies
|
- name: Build Gatsby Site
|
||||||
run: npm install
|
uses: jzweifel/gatsby-cli-github-action@master
|
||||||
|
with:
|
||||||
|
gatsby-arg: build
|
||||||
|
|
||||||
- name: build
|
- name: Deply via ssh
|
||||||
run: node_modules/gatsby/dist/bin/gatsby.js build
|
|
||||||
|
|
||||||
- name: copy file via ssh password
|
|
||||||
uses: appleboy/scp-action@master
|
uses: appleboy/scp-action@master
|
||||||
with:
|
with:
|
||||||
host: ${{ secrets.HOST }}
|
host: ${{ secrets.HOST }}
|
||||||
username: ${{ secrets.WEBMASTER_USERNAME }}
|
username: ${{ secrets.WEBMASTER_USERNAME }}
|
||||||
password: ${{ secrets.WEBMASTER_PASSWORD }}
|
password: ${{ secrets.WEBMASTER_PASSWORD }}
|
||||||
source: "public/*"
|
source: "public/*"
|
||||||
target: "/home/webmaster/html/"
|
target: "html"
|
||||||
overwrite: true
|
overwrite: true
|
||||||
|
Loading…
Reference in New Issue
Block a user