Skip to content

Deploy mkdocs to https://docs.movary.org #30

Deploy mkdocs to https://docs.movary.org

Deploy mkdocs to https://docs.movary.org #30

Workflow file for this run

name: Deploy mkdocs to https://docs.movary.org
on:
release:
types: [published]
paths:
- docs/**
- mkdocs.yml
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: copy files
uses: appleboy/[email protected]
with:
host: ${{ secrets.DOCS_SSH_HOST }}
username: ${{ secrets.DOCS_SSH_USER }}
key: ${{ secrets.DOCS_SSH_KEY }}
source: "mkdocs.yml,docs/*"
target: ${{ secrets.DOCS_DEPLOYMENT_DIRECTORY }}
rm: true
- uses: actions/checkout@v3
- name: restart docker containers
uses: appleboy/[email protected]
with:
host: ${{ secrets.DOCS_SSH_HOST }}
username: ${{ secrets.DOCS_SSH_USER }}
key: ${{ secrets.DOCS_SSH_KEY }}
script: cd ${{ secrets.DOCS_DEPLOYMENT_DIRECTORY }}/.. && docker compose restart