Copy Docs to Remote #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Copy Docs to Remote | |
on: | |
workflow_dispatch: | |
jobs: | |
copy-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Set up SSH | |
uses: webfactory/ssh-agent@v0.5.3 | |
with: | |
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY_DWARSHUIS }} | |
- name: Add Known Hosts | |
run: | | |
echo "${{ secrets.SSH_KNOWN_HOSTS_DWARSHUIS }}" >> ~/.ssh/known_hosts | |
- name: Copy /docs to Remote | |
run: | | |
scp -r ./docs user@dwarshuis.com:/test/spec-up-t-demo-on-documentation-website | |
env: | |
SSH_KNOWN_HOSTS: ${{ secrets.SSH_KNOWN_HOSTS_DWARSHUIS }} |