Update mkdocs.yml #67
Workflow file for this run
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: deploy-docs-linea | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install SSH Key | |
uses: shimataro/ssh-key-action@v2 | |
with: | |
key: ${{ secrets.SSH_PRIVATE_KEY }} | |
known_hosts: unnecessary | |
- name: Adding Known Hosts | |
run: ssh-keyscan -p ${{ secrets.PROXY_PORT}} -H ${{ secrets.PROXY_HOST }} >> ~/.ssh/known_hosts | |
- name: Build Documentation using mkdocs | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.SSH_HOST }} | |
username: ${{ secrets.SSH_USER }} | |
key: ${{ secrets.SSH_PRIVATE_KEY }} | |
port: ${{ secrets.SSH_PORT }} | |
proxy_host: ${{ secrets.PROXY_HOST }} | |
proxy_username: ${{ secrets.PROXY_USERNAME }} | |
proxy_key: ${{ secrets.PROXY_KEY }} | |
proxy_port: ${{ secrets.PROXY_PORT }} | |
script: | | |
cd /var/www/html/docs/docs | |
git checkout master | |
git pull | |
source /var/www/html/docs/docs/.bashrc | |
conda activate mkdocs | |
mkdocs build -c -d /var/www/html/docs/site | |