action
This commit is contained in:
parent
15ead7c842
commit
0fab11adde
27
.github/workflows/main.yml
vendored
Normal file
27
.github/workflows/main.yml
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
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.USERNAME }}
|
||||
password: ${{ secrets.PASSWORD }}
|
||||
source: "public/*"
|
||||
target: "/home/elinorre/"
|
Loading…
Reference in New Issue
Block a user