TOSV25/.forgejo/workflows/deploy.yml
Thomas Berker f8e02fea8c
All checks were successful
Deploy MkDocs / deploy (push) Successful in 41s
initial check-in
2024-12-05 09:36:16 +01:00

32 lines
No EOL
878 B
YAML

name: Deploy MkDocs
on:
push:
branches:
- main # or master, depending on your default branch
jobs:
deploy:
runs-on: ubuntu-20.04
container: node:18
steps:
- uses: actions/checkout@v4
- name: Install mkdocs and rsync
run: |
apt update
apt install -y mkdocs mkdocs-bootstrap mkdocs-nature mkdocs-material mkdocs-autorefs rsync
- name: Install SSH key
uses: https://github.com/shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_PRIVATE_KEY }}
known_hosts: ${{ secrets.SSH_KNOWN_HOSTS }}
- name: Build site
run: mkdocs build
- name: Sync
run: rsync -avz site/ berker@192.168.1.196:/home/berker/nginxproxymanager/data/site
- uses: actions/upload-artifact@v3
with:
name: many-artifacts
path: site/