www domain redirection #82
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: Build+Deploy | |
on: | |
push: | |
branches: | |
- "master" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Build | |
run: | | |
pip3 install mkdocs | |
pip3 install pymdown-extensions | |
pip3 install mkdocs-mermaid2-plugin | |
pip3 install mkdocs-material | |
mkdocs build | |
- name: Deploy | |
env: | |
SSHKEY: ${{ secrets.deploy_ssh_key }} | |
HOST: ssh.rosti.cz | |
PORT: 22430 | |
run: | | |
echo "$SSHKEY" > ssh.key | |
chmod 600 ssh.key | |
rsync -avz --delete -e "ssh -i ssh.key -oStrictHostKeyChecking=no -p $PORT" site/ app@$HOST:/srv/app/ |