Update main.yml
This commit is contained in:
parent
42422dfd21
commit
23ab9cd994
13
.github/workflows/main.yml
vendored
13
.github/workflows/main.yml
vendored
@ -3,11 +3,9 @@ name: CI
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
@ -16,3 +14,12 @@ jobs:
|
||||
|
||||
- uses: jerryjvl/jekyll-build-action@v1
|
||||
name: Build Site
|
||||
|
||||
- uses: easingthemes/ssh-deploy@v2.1.5
|
||||
name: Deploy to Staging server
|
||||
env:
|
||||
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
SOURCE: "_site/"
|
||||
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
|
||||
REMOTE_USER: ${{ secrets.REMOTE_USER }}
|
||||
TARGET: ${{ secrets.REMOTE_DIR }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user