Update docproc.yml

Moved the shell commands that are unique to this repository to worker file.
This commit is contained in:
Keith Crain 2020-08-25 21:40:24 -04:00 committed by GitHub
parent 81538fdcf4
commit 89a6164f9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,7 @@ name: Process MainWP PHP Documentation
on: on:
push: push:
branches: [ documentation ] branches: [ documentation ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel # A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs: jobs:
# This workflow contains a single job called "build" # This workflow contains a single job called "build"
@ -22,4 +22,8 @@ jobs:
with: with:
hosts: 'root@code-reference.mainwp.com' hosts: 'root@code-reference.mainwp.com'
privateKey: ${{ secrets.PRIVATE_KEY }} privateKey: ${{ secrets.PRIVATE_KEY }}
command: sh ~/scripts/docproc.sh command: |
sleep 3
rm -rf ~/Source/mainwp-child
git clone https://github.com/mainwp/mainwp.git ~/Source/mainwp-child
sh ~/scripts/docproc.sh