Skip to content

Update Explorer-tab.md #46

Update Explorer-tab.md

Update Explorer-tab.md #46

# When ever any commit is pushed to the test-space/pk branch, this action will auto trigger and update
# https://test.docs.plantinformatics.io/
# NOTE: A hard refresh might be needed to see the changes (ctrl + R)
name: test-pk__auto-deploy-docs
on:
push:
branches:
- test-space/pk # Trigger on pushes to master branch
workflow_dispatch: # Allow manual triggering
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.EC2_SSH_PRIVATE_KEY }}
known_hosts: ${{ secrets.KNOWN_HOSTS }}
- name: Pull latest changes
env:
HOST: ${{ secrets.EC2_HOST }}
USER: ${{ secrets.EC2_USER }}
run: |
ssh $USER@$HOST <<EOF
cd test/pretzel-documentation-website/
git fetch
git pull
EOF